TensorFlow · Class
callbacks.ModelCheckpoint
ModelCheckpoint saves a Keras model or its weights during model.fit(). It can save every epoch or after a batch interval, and it can keep only the checkpoint with the best monitored value.
Last updated
Syntax
tf.keras.callbacks.ModelCheckpoint(filepath, monitor='val_loss', verbose=0, save_best_only=False, save_weights_only=False, mode='auto', save_freq='epoch', initial_value_threshold=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
tf.keras.callbacks.Callbacktf.keras.Model.fittf.keras.models.load_modeltf.keras.Model.load_weightstf.keras.Model.save_weights