October 2018
Intermediate to advanced
472 pages
10h 57m
English
To fit a model in Keras, along with train digits and train labels, call the fit method of the model with the following parameters:
Look at the Defining the hyperparameters section of the chapter for the defined values of epochs and batch_size:
# fit the modelhistory = model.fit(X_train, y_train, epochs = epochs, batch_size=batch_size, validation_data=(X_val, y_val))
The following is the output of the preceding code:

The following is the output at the end of the code's execution: ...
Read now
Unlock full access