You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scikit-learn recently updated all classes to have the get_feature_names_out method in order to allow retrieving feature names from pipelines (scikit-learn/scikit-learn#21308). The templates could be updated to reflect this new "template".
I believe it is just as simple as add _OneToOneFeatureMixin to each class. e.g.
from sklearn.base import BaseEstimator, ClassifierMixin, TransformerMixin, _OneToOneFeatureMixin
and
class TemplateEstimator(BaseEstimator, _OneToOneFeatureMixin):
What do you think?
The text was updated successfully, but these errors were encountered:
Scikit-learn recently updated all classes to have the
get_feature_names_out
method in order to allow retrieving feature names from pipelines (scikit-learn/scikit-learn#21308). The templates could be updated to reflect this new "template".I believe it is just as simple as add
_OneToOneFeatureMixin
to each class. e.g.and
What do you think?
The text was updated successfully, but these errors were encountered: