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

Support multi-class with base margin. #7381

Merged
merged 15 commits into from Nov 2, 2021

Conversation

trivialfis
Copy link
Member

  • cudf
  • cupy
  • numpy
  • pandas
  • modin
  • dask

This is already partially supported but never properly tested. So the only possible way to use it is calling numpy.array.flatten with base_margin before passing it into XGBoost. This PR adds proper support for most of the data types along with tests.

Close #7083 .

@trivialfis
Copy link
Member Author

trivialfis commented Oct 29, 2021

Interesting that I couldn't reproduce the error in my setup. Might be an issue with CUDA 10 on Windows.

@trivialfis trivialfis merged commit a133211 into dmlc:master Nov 2, 2021
@trivialfis trivialfis deleted the base_margin_multi branch November 2, 2021 05:38
@trivialfis trivialfis added this to 1.6 Done in 2.0 Roadmap Nov 2, 2021
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.

Base margin support for multi-class classifier
2 participants