October 2018
Intermediate to advanced
472 pages
10h 57m
English
Just like we did previously, fit the model, but with epochs set as 40 instead of 20, since the deeper model takes longer to learn. Try training the model for 20 epochs first to see what happens:
# fit modelhistory = model.fit(X_train, y_train, epochs = 40, 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