Created
December 31, 2018 15:15
-
-
Save bluedistro/250b91ff3e50179363c9318a2907285c to your computer and use it in GitHub Desktop.
callbacks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
callback_list = [ | |
keras.callbacks.EarlyStopping( | |
patience=1, | |
monitor='acc', | |
), | |
keras.callbacks.TensorBoard( | |
log_dir='log_dir_m1', | |
histogram_freq=1, | |
embeddings_freq=1, | |
), | |
keras.callbacks.ModelCheckpoint( | |
monitor='val_loss', | |
save_best_only=True, | |
filepath='model/movie_sentiment_m1.h5', | |
), | |
keras.callbacks.ReduceLROnPlateau( | |
patience=1, | |
factor=0.1, | |
) | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment