FrozenEstimator
- class sklearn.frozen.FrozenEstimator(estimator)
Estimator that wraps a fitted estimator to prevent re-fitting.
This meta-estimator takes an estimator and freezes it, in the sense that calling
fiton it has no effect.fit_predictandfit_transformare also disabled. All other methods are delegated to the original estimator and original estimator’s attributes are accessible as well.This is particularly useful when you have a fitted or a pre-trained model as a transformer in a pipeline, and you’d like
pipeline.fitto have no effect on this step.