Skip to content

Instantly share code, notes, and snippets.

@italojs
Created June 28, 2019 14:13
Show Gist options
  • Save italojs/2558b7bd5034c73d7c55c04e0af6687a to your computer and use it in GitHub Desktop.
Save italojs/2558b7bd5034c73d7c55c04e0af6687a to your computer and use it in GitHub Desktop.
#3
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