Skip to content

Can mlxtend show the features' name in Sequential Feature Selection for Regression #809

Answered by rasbt
lewisscola asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, you can use a pandas DataFrame like in Example 12: http://rasbt.github.io/mlxtend/user_guide/feature_selection/SequentialFeatureSelector/#example-12-using-pandas-dataframes

Then, suppose your "fitted" SFS is called sfs1 and you are interested in the names of the features corresponding to the 3-sized feature set, you can access the names via sfs1.subsets_[3]['feature_names']

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lewisscola
Comment options

Answer selected by rasbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #808 on March 23, 2021 22:20.