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

[jvm-packages] fix "key not found: train" issue #6842

Merged
merged 2 commits into from
Apr 19, 2021

Conversation

wbo4958
Copy link
Contributor

@wbo4958 wbo4958 commented Apr 11, 2021

No description provided.

@wbo4958
Copy link
Contributor Author

wbo4958 commented Apr 11, 2021

to fix #6806

@trivialfis trivialfis requested a review from CodingCat April 12, 2021 11:15
@trivialfis
Copy link
Member

@CodingCat Could you please help take a look?

@@ -377,7 +377,7 @@ object XGBoost extends Serializable {
// to workaround the empty partitions in training dataset,
// this might not be the best efficient implementation, see
// (https://github.com/dmlc/xgboost/issues/1277)
if (watches.toMap("train").rowNum == 0) {
Copy link
Member

Choose a reason for hiding this comment

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

is it possible that there is "train' as the key but it is empty?

I think we'd better keep both

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@CodingCat CodingCat merged commit 2c684ff into dmlc:master Apr 19, 2021
@wbo4958 wbo4958 deleted the train-empty branch December 20, 2021 01:49
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.

3 participants