Medial Code Documentation
|
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 | |
A special internal callback for invoking a list of other callbacks. .. versionadded:: 1.3.0
bool xgboost.callback.CallbackContainer.after_iteration | ( | self, | |
_Model | model, | ||
int | epoch, | ||
DMatrix | dtrain, | ||
Optional[List[Tuple[DMatrix, str]]] | evals | ||
) |
Function called after training iteration.
_Model xgboost.callback.CallbackContainer.after_training | ( | self, | |
_Model | model | ||
) |
Function called after training.
bool xgboost.callback.CallbackContainer.before_iteration | ( | self, | |
_Model | model, | ||
int | epoch, | ||
DMatrix | dtrain, | ||
Optional[List[Tuple[DMatrix, str]]] | evals | ||
) |
Function called before training iteration.
_Model xgboost.callback.CallbackContainer.before_training | ( | self, | |
_Model | model | ||
) |
Function called before training.