Trénování a predikce s více vstupy

Advanced Deep Learning with Keras

Zach Deane Mayer

Data Scientist

Trénování s více vstupy

model.fit([data_1, data_2], target)

Advanced Deep Learning with Keras

Predikce s více vstupy

model.predict([np.array([[1]]), np.array([[2]])])
array([[3.]], dtype=float32)
model.predict([np.array([[42]]), np.array([[119]])])
array([[161.]], dtype=float32)

Advanced Deep Learning with Keras

Vyhodnocení s více vstupy

model.evaluate([np.array([[-1]]), np.array([[-2]])], np.array([[-3]]))
1/1 [==============================] - 0s 801us/step
Out[21]: 0.0

Advanced Deep Learning with Keras

Pojďme si procvičit!

Advanced Deep Learning with Keras

Preparing Video For Download...