I'm running a Gradient Boosting Regressor using scikit-learn
. Within my features, I have a categorical feature (let's say Res
), with 4 categories. I'm doing dummy variables to evaluate categorical features. S
feature category is the most important feature according to regressor feature importance.
I'm evaluating my regressor, assessing some metrics for different test datasets. I've got one test dataset for every category of the referred feature (Res
). I mean, I've got a dataset where all the values of the Res
feature are S
. I'm obtaining the poorest performance in the dataset that corresponds to the most important category.
Does it make sense?