Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- checkpoint_path = '/tmp/datasets/model.hdf5'
- checkpoint_dir = os.path.dirname(checkpoint_path)
- #create a callback that saves the model
- cp_callback = tf.keras.callbacks.ModelCheckpoint(filepath=checkpoint_path,
- save_best_only=True,
- save_weights_only=False,
- verbose=0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement