Can mlxtend show the features' name in Sequential Feature Selection for Regression #809
-
Hi, Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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 viasfs1.subsets_[3]['feature_names']