Recovering training after an interruption

CatBoost makes a backup copy of the intermediate results during training. If an unexpected interruption occurs (for instance, the computer accidentally turns off), training can be continued from the saved state. In this case, the completed iterations of building trees don't need to be repeated.

This option is set in the starting parameters.

MethodParametersDescription
save_snapshot

Enable snapshotting for restoring the training progress after an interruption.

Set this parameter to “True”

snapshot_fileThe name of the file to save the training progress information in. This file is used for recovering training after an interruption.
Depending on whether the specified file exists in the file system:
  • Missing — Write information about training progress to the specified file.
  • Exists — Load data from the specified file and continue training from where it left off.