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

Use DataSplitMode to configure data loading #8434

Merged
merged 2 commits into from
Nov 8, 2022

Conversation

rongou
Copy link
Contributor

@rongou rongou commented Nov 7, 2022

This is a pure refactoring to leverage the DataSplitMode enum to configure data loading, so that we'd have more flexibility (e.g. adding column-wise split support).

Part of #8424

@rongou
Copy link
Contributor Author

rongou commented Nov 7, 2022

@trivialfis

src/cli_main.cc Outdated
dsplit = 2;
if (dsplit == 0) {
if (collective::IsFederated()) {
dsplit = 3;
Copy link
Member

Choose a reason for hiding this comment

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

Can we use the enum symbol here instead of integer?

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.

Copy link
Member

@trivialfis trivialfis left a comment

Choose a reason for hiding this comment

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

LGTM, assuming all tests pass.

@trivialfis trivialfis merged commit 8e76f5f into dmlc:master Nov 8, 2022
@rongou rongou deleted the data-split-mode branch November 18, 2022 19:02
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