11Help on class ModelCheckpoint in module keras.src.callbacks.model_checkpoint:
22
3- class ModelCheckpoint(keras.src.callbacks.callback.Callback )
3+ class ModelCheckpoint(keras.src.callbacks.monitor_callback.MonitorCallback )
44 | ModelCheckpoint(filepath, monitor='val_loss', verbose=0, save_best_only=False, save_weights_only=False, mode='auto', save_freq='epoch', initial_value_threshold=None)
55 |
66 | Callback to save the Keras model or model weights at some frequency.
@@ -95,9 +95,8 @@ class ModelCheckpoint(keras.src.callbacks.callback.Callback)
9595 | decision to overwrite the current save file is made based on either
9696 | the maximization or the minimization of the monitored quantity.
9797 | For `val_acc`, this should be `"max"`, for `val_loss` this should be
98- | `"min"`, etc. In `"auto"` mode, the mode is set to `"max"` if the
99- | quantities monitored are `"acc"` or start with `"fmeasure"` and are
100- | set to `"min"` for the rest of the quantities.
98+ | `"min"`, etc. In `"auto"` mode, the direction is automatically
99+ | inferred from the name of the monitored quantity.
101100 | save_weights_only: if `True`, then only the model's weights will be
102101 | saved (`model.save_weights(filepath)`), else the full model is
103102 | saved (`model.save(filepath)`).
@@ -116,6 +115,7 @@ class ModelCheckpoint(keras.src.callbacks.callback.Callback)
116115 |
117116 | Method resolution order:
118117 | ModelCheckpoint
118+ | keras.src.callbacks.monitor_callback.MonitorCallback
119119 | keras.src.callbacks.callback.Callback
120120 | builtins.object
121121 |
0 commit comments