Add label encoder to XGBoostClassifier
See original GitHub issueI currently get the following DeprecationWarning with XGBoost==1.4.2:
The use of label encoder in XGBClassifier is deprecated and will be removed in a future release. To remove this warning, do the following: 1) Pass option use_label_encoder=False when constructing XGBClassifier object; and 2) Encode your labels (y) as integers starting with 0, i.e. 0, 1, 2, ..., [num_class - 1].
Since I know we want to upgrade XGBoost to >1.4.2 for the pandas 1.3.0 release, it could be a good idea to address this too, sooner rather than later 😃
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:15 (6 by maintainers)
Top Results From Across the Web
XGBoost using Label Encoder - Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from Google Analytics Customer Revenue Prediction.
Read more >Xgboost with Different Categorical Encoding Methods - Xia Song
Label encoding is used to transform categorical values into numerical values. ... Split data into training data set and test data set. ......
Read more >Support GPU input in `XGBClassifier`; deprecate the use of ...
Any data set works, just choose for creditcard.csv . ... Right now, XGBClassifier uses sklearn's label encoder to map the labels to 0....
Read more >XGBoost Categorical Variables: Dummification vs encoding
I want to answer this question not just in terms of XGBoost but in terms of any problem dealing with categorical data. While...
Read more >Data Preparation for Gradient Boosting with XGBoost in Python
We can easily convert the string values to integer values using the LabelEncoder. The three class values (Iris-setosa, Iris-versicolor, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @angela97lin ! Will start working on this.
No problem, always excited to have new contributors!