Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
xgboost.callback.EvaluationMonitor Class Reference
Inheritance diagram for xgboost.callback.EvaluationMonitor:
xgboost.callback.TrainingCallback

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)
 
- Public Member Functions inherited from xgboost.callback.TrainingCallback
_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

- Static Public Attributes inherited from xgboost.callback.TrainingCallback
 EvalsLog = Dict[str, Dict[str, _ScoreList]]
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

None xgboost.callback.EvaluationMonitor.__init__ (   self,
int   rank = 0,
int   period = 1,
bool   show_stdv = False 
)

Reimplemented from xgboost.callback.TrainingCallback.

Member Function Documentation

◆ after_iteration()

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.

◆ after_training()

_Model xgboost.callback.EvaluationMonitor.after_training (   self,
_Model  model 
)
Run after training is finished.

Reimplemented from xgboost.callback.TrainingCallback.


The documentation for this class was generated from the following file: