FitCallback
- class sklearn.callback.FitCallback(*args, **kwargs)
Protocol for the callbacks evaluated on tasks during the fit of an estimator.
- on_fit_task_begin(estimator, context, *, X=, , ,
Protocol for the callbacks evaluated on tasks during the fit of an estimator.
Method called at the beginning of each fit task of the estimator.
The estimator calling this callback hook.
sklearn.callback.CallbackContext instanceContext of the corresponding task.
The training data at this task.
The training target values at this task.
Training metadata at this task, e.g. sample weights.
A new instance of the estimator that is ready to predict, transform, etc … as if fit had stopped at the beginning of this task.
Method called at the end of each fit task of the estimator.
The estimator calling this callback hook.
sklearn.callback.CallbackContext instanceContext of the corresponding task.
The training data at this task.
The training target values at this task.
Training metadata at this task, e.g. sample weights.
A new instance of the estimator that is ready to predict, transform, etc … as if fit had stopped at the end of this task.
Whether or not to stop the current level of iterations at this task.
Method called at the beginning of the fit method of the estimator.
For auto-propagated callbacks, this method is called only once, before running the fit method of the outermost estimator.
The estimator calling this callback hook.
sklearn.callback.CallbackContext instanceContext of the corresponding task. This is usually the root context of the estimator but it can be an intermediate context if the estimator is a sub-estimator of a meta-estimator.
Method called after finishing the fit method of the estimator.
For auto-propagated callbacks, this method is called only once, after finishing the fit method of the outermost estimator.
The estimator calling this callback hook.
sklearn.callback.CallbackContext instanceContext of the corresponding task. This is usually the root context of the estimator but it can be an intermediate context if the estimator is a sub-estimator of a meta-estimator.