-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
More support for column split in cpu predictor #9244
Conversation
src/predictor/cpu_predictor.cc
Outdated
|
||
explicit SingleInstanceView(SparsePage::Inst const &instance) : inst{instance} {} | ||
SparsePage::Inst operator[](size_t i) { | ||
CHECK_EQ(i, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a heavy check. Can we remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
std::unique_ptr<DMatrix> dmat = CreateSparsePageDMatrix(kEntries); | ||
auto lparam = CreateEmptyGenericParam(GPUIDX); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup!
Added column split support to
PredictInstance
andPredictLeaf
. Refactoring of tests.For now
PredictContribution
andPredictInteractionContributions
are not supported.Still need to add more tests in a followup.