-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ENH Raise NotFittedError in get_feature_names_out for Imputers and Isotonic Regression #25367
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
Conversation
@@ -41,7 +41,11 @@ Changes impacting all modules | |||
raises a `NotFittedError` if the instance is not fitted. This ensures the error is | |||
consistent in all estimators with the `get_feature_names_out` method. | |||
|
|||
- :class:`feature_extraction.text.TfidfTransformer` |
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.
I reordered those to be in alphabetic order.
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 @rprkh
Extended this PR to include isotonic regression based on #24916 (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.
Thank you for the PR! LGTM
Reference Issues/PRs
Towards #24916
What does this implement/fix? Explain your changes.
Includes
check_is_fitted
for the following Imputers:Also includes
check_is_fitted
for Isotonic RegressionAny other comments?
Test passes
pytest -vsl sklearn/tests/test_common.py -k estimators_get_feature_names_out_error