Medial Code Documentation
|
Public Member Functions | |
None | __init__ (self, int rank=0, int period=1, bool show_stdv=False) |
bool | after_iteration (self, _Model model, int epoch, TrainingCallback.EvalsLog evals_log) |
_Model | after_training (self, _Model model) |
![]() | |
_Model | before_training (self, _Model model) |
bool | before_iteration (self, _Model model, int epoch, EvalsLog evals_log) |
Data Fields | |
printer_rank | |
show_stdv | |
period | |
Protected Member Functions | |
str | _fmt_metric (self, str data, str metric, float score, Optional[float] std) |
Protected Attributes | |
_latest | |
Additional Inherited Members | |
![]() | |
EvalsLog = Dict[str, Dict[str, _ScoreList]] | |
Print the evaluation result at each iteration. .. versionadded:: 1.3.0 Parameters ---------- rank : Which worker should be used for printing the result. period : How many epoches between printing. show_stdv : Used in cv to show standard deviation. Users should not specify it.
None xgboost.callback.EvaluationMonitor.__init__ | ( | self, | |
int | rank = 0 , |
||
int | period = 1 , |
||
bool | show_stdv = False |
||
) |
Reimplemented from xgboost.callback.TrainingCallback.
bool xgboost.callback.EvaluationMonitor.after_iteration | ( | self, | |
_Model | model, | ||
int | epoch, | ||
TrainingCallback.EvalsLog | evals_log | ||
) |
Run after each iteration. Return True when training should stop.
Reimplemented from xgboost.callback.TrainingCallback.
_Model xgboost.callback.EvaluationMonitor.after_training | ( | self, | |
_Model | model | ||
) |
Run after training is finished.
Reimplemented from xgboost.callback.TrainingCallback.