-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
ENH Raise NotFittedError in get_feature_names_out for estimators that use OnetoOneFeatureMixin #25294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH Raise NotFittedError in get_feature_names_out for estimators that use OnetoOneFeatureMixin #25294
Conversation
|
@adrinjalali , I had made an error in the previous PR and closed it. I have made a new PR (this one) with the change log entry. |
glemaitre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM also. We only need to move the entry in the right log file.
doc/whats_new/v1.2.rst
Outdated
| :user:`Olivier Grisel <ogrisel>`, and `Thomas Fan`_, | ||
| :pr:`24556` by :user:`Vincent Maladière <Vincent-Maladiere>`. | ||
|
|
||
| - |Enhancement| The `get_feature_names_out` method of the following classes now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to place this entry in 1.3.rst.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Working on it.
glemaitre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @jpangas
Reference Issues/PRs
In issue #24916, we want to make the error message uniform in estimators when we call
get_feature_names_outbeforefit. This PR works towards that issue and solves the inconsistencies in estimators that inherit from theOnetoOneFeatureMixinClass.What does this implement/fix? Explain your changes.
The following estimators that inherit from the
OnetoOneFeatureMixinclass will raise the agreedNotFittedErrorwhenget_feature_names_outis called beforefit.Any other comments?
All tests successfully passed after the above estimators were removed from the whitelist.