-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
ENH Adds get_feature_names_out for AdditiveChi2Sampler #22137
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 Adds get_feature_names_out for AdditiveChi2Sampler #22137
Conversation
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. The output feature names are actually very informative for this transformer. Just a comment on the changelog:
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
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 directly resolved the conflicts from merging #22694 first. LGTM. Thanks @thomasjpfan !
…22137) Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com> Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
…22137) Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com> Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Reference Issues/PRs
Towards #21308
What does this implement/fix? Explain your changes.
This PR is adds
get_feature_names_out
forAdditiveChi2Sampler
. This is it's own PR because the generated names are specific to this transformer.Any other comments?
Docstring for
transform
is incorrect. I opened #22138 as a quick docstring fix.The
test_transformers_get_feature_names_out
common tests will run onAdditiveChi2Sampler
because it definesget_feature_names_out
in this PR.scikit-learn/sklearn/tests/test_common.py
Lines 394 to 396 in 1c24595