alteryx / alteryx/evalml

Use enable_categorical flag in XGBClassifier to avoid encoding categorical features

未關閉
#3,988 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
850
分支
96
PR 合併指標
30 天內沒有已合併 PR

描述

- With XGBoost 1.5.0, you can now use `enable_categorical` argument to pass categorical data (which avoids us needing to one-hot encode categorical columns)
- https://xgboost.readthedocs.io/en/stable/python/examples/categorical.html#sphx-glr-python-examples-categorical-py

```python
import xgboost as xgb

clf = xgb.XGBClassifier(
enable_categorical=True, max_cat_to_onehot=1
)
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。