Group feature selection #954
Unanswered
kerrymcgowan
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Good question! The answer is yes and no 😅. Right now, it doesn't work out of the box, but I remember doing something similar once where I had 3 features, I did a one-hot encoding on the third feature, which became 20 new features due to the one hot encoding, leaving me with 22 features in total. I wrote some custom code / modification so that the the 20 new features were treated as a group rather than 20 individual ones. I should have that code somewhere and will try to see if I can find it in the next couple of days. I should still have it somewhere since that was for a research project 1-2 years ago that I should have archived. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Sebastian,
Is it possible to perform feature selection with groups of features instead of individual features with mlxtend? So for example, if you have 100 features that could be partitioned into groups 1-10, is there a way to run feature selection to select which combination of those 10 groups produces the best model instead of selecting from the 100 features individually?
Beta Was this translation helpful? Give feedback.
All reactions