Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
xgboost.callback.CallbackContainer Class Reference

Public Member Functions

None __init__ (self, Sequence[TrainingCallback] callbacks, Optional[Callable] metric=None, bool output_margin=True, bool is_cv=False)
 
_Model before_training (self, _Model model)
 
_Model after_training (self, _Model model)
 
bool before_iteration (self, _Model model, int epoch, DMatrix dtrain, Optional[List[Tuple[DMatrix, str]]] evals)
 
bool after_iteration (self, _Model model, int epoch, DMatrix dtrain, Optional[List[Tuple[DMatrix, str]]] evals)
 

Data Fields

 callbacks
 
 metric
 
 is_cv
 
 aggregated_cv
 
 history
 

Protected Member Functions

None _update_history (self, Union[List[Tuple[str, float]], List[Tuple[str, float, float]]] score, int epoch)
 

Protected Attributes

 _output_margin
 

Detailed Description

A special internal callback for invoking a list of other callbacks.

.. versionadded:: 1.3.0

Member Function Documentation

◆ after_iteration()

bool xgboost.callback.CallbackContainer.after_iteration (   self,
_Model  model,
int  epoch,
DMatrix  dtrain,
Optional[List[Tuple[DMatrix, str]]]  evals 
)
Function called after training iteration.

◆ after_training()

_Model xgboost.callback.CallbackContainer.after_training (   self,
_Model  model 
)
Function called after training.

◆ before_iteration()

bool xgboost.callback.CallbackContainer.before_iteration (   self,
_Model  model,
int  epoch,
DMatrix  dtrain,
Optional[List[Tuple[DMatrix, str]]]  evals 
)
Function called before training iteration.

◆ before_training()

_Model xgboost.callback.CallbackContainer.before_training (   self,
_Model  model 
)
Function called before training.

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