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

Pass correct split_type to GPU predictor #6491

Merged
merged 2 commits into from Dec 12, 2020

Conversation

hcho3
Copy link
Collaborator

@hcho3 hcho3 commented Dec 11, 2020

The GPU predictor was producing incorrect prediction for models with categorical splits, because the whole d_tree_split_types span was being passed to the GetLeafWeight kernel, when the kernel had expected a subspan corresponding to a single tree.

This PR also adds a test example that fails with the current code and passes with the proposed patch.

@codecov-io
Copy link

codecov-io commented Dec 11, 2020

Codecov Report

Merging #6491 (171241e) into master (0d483cb) will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6491      +/-   ##
==========================================
- Coverage   80.35%   80.27%   -0.09%     
==========================================
  Files          13       13              
  Lines        3533     3533              
==========================================
- Hits         2839     2836       -3     
- Misses        694      697       +3     
Impacted Files Coverage Δ
python-package/xgboost/tracker.py 93.98% <0.00%> (-1.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d483cb...171241e. Read the comment docs.

@hcho3 hcho3 merged commit c31e3ef into dmlc:master Dec 12, 2020
@hcho3 hcho3 deleted the fix_gpu_predictor_categorical branch December 12, 2020 03:30
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.

None yet

3 participants