Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Last active November 21, 2018 14:34
Show Gist options
  • Save WillKoehrsen/9a2e168c80828dae247373d0b1392787 to your computer and use it in GitHub Desktop.
Save WillKoehrsen/9a2e168c80828dae247373d0b1392787 to your computer and use it in GitHub Desktop.
from keras.callbacks import EarlyStopping, ModelCheckpoint
# Create callbacks
callbacks = [EarlyStopping(monitor='val_loss', patience=5),
ModelCheckpoint('../models/model.h5'), save_best_only=True,
save_weights_only=False)]
@JonanHarrewijn
Copy link

')' in line 5 should be removed it closes ModelCheckpoint function too early

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment