|
None | __init__ (self, Union[str, os.PathLike] directory, str name="model", bool as_pickle=False, int iterations=100) |
|
bool | after_iteration (self, _Model model, int epoch, TrainingCallback.EvalsLog evals_log) |
|
_Model | before_training (self, _Model model) |
|
_Model | after_training (self, _Model model) |
|
bool | before_iteration (self, _Model model, int epoch, EvalsLog evals_log) |
|
Checkpointing operation.
.. versionadded:: 1.3.0
Parameters
----------
directory :
Output model directory.
name :
pattern of output model file. Models will be saved as name_0.json, name_1.json,
name_2.json ....
as_pickle :
When set to True, all training parameters will be saved in pickle format, instead
of saving only the model.
iterations :
Interval of checkpointing. Checkpointing is slow so setting a larger number can
reduce performance hit.