Last active
November 21, 2018 14:34
-
-
Save WillKoehrsen/9a2e168c80828dae247373d0b1392787 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
')' in line 5 should be removed it closes ModelCheckpoint function too early