PredictorMixin

class lightkit.estimator.PredictorMixin[source]

Bases: Generic[lightkit.estimator._protocols.D_contra, lightkit.estimator._protocols.R_co]

Mixin that provides a fit_predict method that chains fitting the estimator and making predictions for the data it was fitted on.

Methods

fit_predict

Fits the estimator using the provided data and subsequently predicts the labels for the data using the fitted estimator.