Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.54 KB

07-checkpointing.md

File metadata and controls

42 lines (29 loc) · 1.54 KB

8.7 Checkpointing

Slides

ModelCheckpoint callback is used with training the model to save a model or weights in a checkpoint file at some interval, so the model or weights can be loaded later to continue the training from the state saved or to use for deployment.

Classes, function, and attributes:

  • keras.callbacks.ModelCheckpoint: ModelCheckpoint class from keras callbacks api
  • filepath: path to save the model file
  • monitor: the metric name to monitor
  • save_best_only: only save when the model is considered the best according to the metric provided in monitor
  • model: overwrite the save file based on either maximum or the minimum scores according the metric provided in monitor

Notes

Add notes from the video (PRs are welcome)

  • checkpointing saves the model after each training iteration
  • checkpoint conditions may include reaching the best performance
  • keras callbacks
⚠️ The notes are written by the community.
If you see an error here, please create a PR with a fix.

Navigation