Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate LabelEncoder in XGBClassifier; Enable cuDF/cuPy inputs in XGBClassifier #6269

Merged
merged 8 commits into from
Oct 26, 2020

Conversation

hcho3
Copy link
Collaborator

@hcho3 hcho3 commented Oct 21, 2020

Closes #6232

cc @pseudotensor

@hcho3 hcho3 marked this pull request as draft October 22, 2020 01:17
@hcho3 hcho3 marked this pull request as ready for review October 22, 2020 01:37
@pseudotensor
Copy link
Contributor

Thanks!

Copy link
Member

@trivialfis trivialfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve to the general idea. See minor comment.

Also please track it in #3986 .

python-package/xgboost/sklearn.py Outdated Show resolved Hide resolved
@hcho3 hcho3 merged commit c8ec621 into dmlc:master Oct 26, 2020
@hcho3 hcho3 deleted the deprecate_label_encoder branch October 26, 2020 20:21
@wenfeiy-db
Copy link

wenfeiy-db commented Jul 19, 2022

Could someone explain why we made the deprecation decision for label encoder? I think most native sklearn classifiers do the label transformation internally and call inverse_transform at predict. This causes discrepancy between the xgboost sklearn interface and other sklearn classifiers.
@hcho3 @RAMitchell

@hcho3
Copy link
Collaborator Author

hcho3 commented Jul 19, 2022

This was to accept cudf and cuPy arrays as X.

@trivialfis
Copy link
Member

Also to avoid saving the scikit learn object in xgboost model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support GPU input in XGBClassifier; deprecate the use of label encoder
5 participants