Created
April 1, 2020 16:40
-
-
Save jamescalam/503f1fbf38a48c1b109e47e1af538535 to your computer and use it in GitHub Desktop.
Snippet showing how to setup model checkpoint saving using built-in call backs function
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
checkpoint = tf.keras.callbacks.ModelCheckpoint( | |
filepath='./training_checkpoints/ckpt_{epoch}', | |
save_weights_only=True | |
) | |
history = model.fit(dataset, epochs=EPOCHS, callbacks=[checkpoint_callback]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment