cb.save.model(save_period = 0, save_name = "xgboost.model")save_period iterations; 0 means save the model at the end.sprintf formatting specifier
to include the integer iteration number in the file name.
E.g., with save_name = 'xgboost_
the file saved at iteration 50 would be named "xgboost_0050.model".save_period's or at the end.Callback function expects the following values to be set in its calling frame:
bst,
iteration,
begin_iteration,
end_iteration.
callbacks