Categorical Feature Support in Gradient Boosting
In this example, we compare the training times and prediction performances of
HistGradientBoostingRegressor with different encoding
strategies for categorical features. In particular, we evaluate:
“Dropped”: dropping the categorical features;
“One Hot”: using a
OneHotEncoder;“Ordinal”: using an
OrdinalEncoderand treat categories as ordered, equidistant quantities;“Target”: using a ;

