Skip to content

Commit

Permalink
Minor touch ups
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Nov 28, 2024
1 parent c8d7e0d commit 75522e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions keras/src/callbacks/model_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ class ModelCheckpoint(Callback):
when checkpoint saving the whole model (default).
For example:
if `filepath` is `"{epoch:02d}-{val_loss:.2f}.keras"` or
"{epoch:02d}-{val_loss:.2f}.h5"`, then the model checkpoints
will be saved with the epoch number and the validation loss in
the filename. The directory of the filepath should not be reused
by any other callbacks to avoid conflicts.
"{epoch:02d}-{val_loss:.2f}.weights.h5"`, then the model
checkpoints will be saved with the epoch number and the validation
loss in the filename. The directory of the filepath
should not be reused by any other callbacks to avoid conflicts.
monitor: The metric name to monitor. Typically the metrics are set by
the `Model.compile` method. Note:
* Prefix the name with `"val_"` to monitor validation metrics.
Expand Down Expand Up @@ -193,7 +193,7 @@ def __init__(
):
raise ValueError(
"The filepath provided must end in `.keras` "
"(Keras model format) or `.h5` (HDF5 format). Received: "
"(Keras model format). Received: "
f"filepath={self.filepath}"
)

Expand Down

0 comments on commit 75522e4

Please sign in to comment.