text_plain_output_1.png
from keras.callbacks import EarlyStopping, ReduceLROnPlateau,ModelCheckpoint

from keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint
earlystop = EarlyStopping(patience=10)
learning_rate_reduction = ReduceLROnPlateau(monitor='val_acc', patience=2, verbose=1, factor=0.5, min_lr=1e-05)
callbacks = [earlystop, learning_rate_reduction, ModelCheckpoint(filepath='best_model.h5', monitor='val_loss', save_best_only=True)]