Thanks to visit codestin.com
Credit goes to github.com

Skip to content

API Deprecate n_features_in_ from Dummy* #20960

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

Merged

Conversation

thomasjpfan
Copy link
Member

Reference Issues/PRs

Fixes #20874

What does this implement/fix? Explain your changes.

An alternative is to define n_features_in_ and feature_names_in_ and not validate.

CC @NicolasHug

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @thomasjpfan

@NicolasHug NicolasHug changed the title API Removes n_features_in_ from Dummy* API Deprecate n_features_in_ from Dummy* Sep 7, 2021
@NicolasHug NicolasHug merged commit 5bf9491 into scikit-learn:main Sep 7, 2021
@glemaitre
Copy link
Member

Ups my approval was a bit too fast. We need to update the tests to avoid raising the warning. I think that for some tests, we might need to change the Dummy* by another simple classifier/regressor.

@glemaitre
Copy link
Member

Whops, @NicolasHug was a bit too fast :). I will make a PR to correct the failures then :)

@NicolasHug
Copy link
Member

Oh wow, sorry... I was sure I checked 🤦

@glemaitre
Copy link
Member

I opened #20963

adrinjalali pushed a commit that referenced this pull request Sep 7, 2021
@glemaitre glemaitre added this to the 1.0 milestone Sep 7, 2021
@glemaitre
Copy link
Member

This one needs to be backported

@adrinjalali
Copy link
Member

done already

thomasjpfan added a commit to thomasjpfan/scikit-learn that referenced this pull request Sep 7, 2021
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do we want n_feature_in_ = None?
4 participants