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

Remove update prediction cache from predictors. #5312

Merged
merged 1 commit into from
Feb 17, 2020

Conversation

trivialfis
Copy link
Member

@trivialfis trivialfis commented Feb 16, 2020

Move this function into gbtree, and uses only updater for doing so. As now the predictor knows exactly how many trees to predict, there's no need for it to update the prediction cache.

  • Remove update prediction cache from predictors and update the cache in gbtree.
  • Move GetPredictor into a CC file.

This is part of on going work to enable prediction from EllpackDMatrix.

@mli
Copy link
Member

mli commented Feb 16, 2020

Codecov Report

Merging #5312 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5312   +/-   ##
=======================================
  Coverage   83.76%   83.76%           
=======================================
  Files          11       11           
  Lines        2409     2409           
=======================================
  Hits         2018     2018           
  Misses        391      391           

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 8ca9744...2f5e572. Read the comment docs.

@trivialfis trivialfis merged commit 0110754 into dmlc:master Feb 17, 2020
@trivialfis trivialfis deleted the remove-update-cache branch February 17, 2020 03:35
@hcho3 hcho3 mentioned this pull request Feb 21, 2020
12 tasks
trivialfis added a commit to trivialfis/xgboost that referenced this pull request Apr 12, 2020
trivialfis added a commit that referenced this pull request Apr 14, 2020
* Update doc for copying booster. [skip ci]

The issue is resolved in  #5312 .

* Add version for new APIs. [skip ci]
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants