Skip to content
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

Fix FutureWarning: Function get_feature_names is deprecated #216

Merged
merged 7 commits into from
Oct 12, 2021

Conversation

alexis-cvetkov
Copy link
Contributor

@alexis-cvetkov alexis-cvetkov commented Oct 11, 2021

Fix the Future Warnings mentioned in #213. Everywhere get_feature_names was used (mostly in GapEncoder and some tests), we now check the version of sklearn and use get_feature_names_out if sklearn_version >= 1.0.
I also added get_feature_names_out methods in the GapEncoder and SuperVectorizer (they simply copy get_feature_names) to override the inherited methods from sklearn.

@alexis-cvetkov alexis-cvetkov changed the title replace "get_feature_names" by "get_feature_names_out" Fix FutureWarning: Function get_feature_names is deprecated Oct 11, 2021
@GaelVaroquaux
Copy link
Member

LGTM. Merging

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.

None yet

3 participants