January 2018
Intermediate to advanced
474 pages
10h 23m
English
Training a Keras model is as simple as calling the model.fit() method. The full signature of this method is as follows:
fit(self, x, y, batch_size=32, epochs=10, verbose=1, callbacks=None, validation_split=0.0, validation_data=None, shuffle=True, class_weight=None, sample_weight=None, initial_epoch=0)
For the example model that we created earlier, train the model with the following code:
model.fit(x_data, y_labels)
Read now
Unlock full access