XGBoosting Home | About | Contact | Examples

Categorical

Helpful examples for preparing categorical data for XGBoost models.

Categorical data for XGBoost models refers to input or output variables that represent discrete categories or groups, which must be encoded into numerical values using techniques like one-hot encoding or ordinal encoding before they can be used by the model for training and prediction.

ExamplesTags
Configure XGBoost "enable_categorical" Parameter
Configure XGBoost "max_cat_threshold" Parameter
Configure XGBoost "max_cat_to_onehot" Parameter
Configure XGBoost "use_label_encoder" Parameter
Encode Categorical Features As Dummy Variables for XGBoost
Label Encode Categorical Input Variables for XGBoost
Label Encode Categorical Target Variable for XGBoost
One-Hot Encode Categorical Features for XGBoost
Ordinal Encode Categorical Features for XGBoost
String Input Features for XGBoost
XGBoost Compare "max_cat_threshold" vs "max_cat_to_onehot" Parameters
XGBoost Don't Use One-Hot-Encoding
XGBoost Native Categorical Faster Than One Hot and Ordinal Encoding
XGBoost's Native Support for Categorical Features