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

More support for column split in cpu predictor #9244

Merged
merged 10 commits into from
Jun 5, 2023

Conversation

rongou
Copy link
Contributor

@rongou rongou commented Jun 3, 2023

Added column split support to PredictInstance and PredictLeaf. Refactoring of tests.

For now PredictContribution and PredictInteractionContributions are not supported.

Still need to add more tests in a followup.

@rongou
Copy link
Contributor Author

rongou commented Jun 3, 2023

@trivialfis


explicit SingleInstanceView(SparsePage::Inst const &instance) : inst{instance} {}
SparsePage::Inst operator[](size_t i) {
CHECK_EQ(i, 0);
Copy link
Member

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?

Copy link
Contributor Author

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);
Copy link
Member

Choose a reason for hiding this comment

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

Nice cleanup!

@trivialfis trivialfis merged commit 962a206 into dmlc:master Jun 5, 2023
@rongou rongou deleted the test-colsplit-cpu-predictor branch September 25, 2023 16:40
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.

2 participants