Created
June 28, 2019 14:13
-
-
Save italojs/2558b7bd5034c73d7c55c04e0af6687a to your computer and use it in GitHub Desktop.
#3
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
checkpoint = ModelCheckpoint("best_model.hdf5", monitor='loss', verbose=1, | |
save_best_only=True, mode='auto', period=1) | |
model.fit(x_train, y_train, | |
batch_size=batch_size, | |
epochs=epochs, | |
verbose=1, | |
validation_data=(x_test, y_test), | |
callbacks=[checkpoint]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment