Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. checkpoint_path = '/tmp/datasets/model.hdf5'
  2. checkpoint_dir = os.path.dirname(checkpoint_path)
  3. #create a callback that saves the model
  4. cp_callback = tf.keras.callbacks.ModelCheckpoint(filepath=checkpoint_path,
  5. save_best_only=True,
  6. save_weights_only=False,
  7. verbose=0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement