Skip to content

Instantly share code, notes, and snippets.

@bluedistro
Created December 31, 2018 15:15
Show Gist options
  • Save bluedistro/250b91ff3e50179363c9318a2907285c to your computer and use it in GitHub Desktop.
Save bluedistro/250b91ff3e50179363c9318a2907285c to your computer and use it in GitHub Desktop.
callbacks
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