October 2018
Intermediate to advanced
472 pages
10h 57m
English
Finally, we need to fit the model:
# fit the model on batches with real-time data augmentationhistory = model.fit_generator(train_datagen.flow(X_train, y_train, batch_size=128), steps_per_epoch=len(X_train) / 128, epochs=10, validation_data=(train_datagen.flow(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