alteryx / alteryx/evalml

Use enable_categorical flag in XGBClassifier to avoid encoding categorical features

Đang mở
#3,988 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
850
Fork
96
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

- 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
)
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.