SelectBySingleFeaturePerformance - Why numerical features only? #671
Unanswered
Fernakamuta
asked this question in
Q&A
Replies: 1 comment
-
Hey @Fernakamuta Interesting point. Thank you for the suggestion. It is a hard one. If we allow the transformer to accept categorical variables, it is going to fail every time the user passes an sklearn classifier or regressor. So we will be failing on the great majority of algorithm implementations so that it can accept lightGBMs. Would it not be possible to use ordinal encoding on the variables before passing it to the lightGBM instead? that should work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I tried to used
SelectBySingleFeaturePerformance
to see the roc-auc score of some categorical features with an univariate lgbm model.Since lgbm accepts categorical features as pandas category dtypes, I was using this way... But I am not able to use them in current SelectBySingleFeaturePerformance implementation because it uses the find_or_check_numerical_variables.
Maybe we could replace it by
find_categorical_and_numerical_variables
?Beta Was this translation helpful? Give feedback.
All reactions