Skip to content

Fix FutureWarning: Function get_feature_names is deprecated - #216

Merged
GaelVaroquaux merged 7 commits into
skrub-data:masterfrom
alexis-cvetkov:fix_warnings
Oct 12, 2021
Merged

Fix FutureWarning: Function get_feature_names is deprecated#216
GaelVaroquaux merged 7 commits into
skrub-data:masterfrom
alexis-cvetkov:fix_warnings

Conversation

@alexis-cvetkov

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

3 participants