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

Avoid forced log in the DMatrix binary loader. #11080

Merged
merged 3 commits into from
Dec 8, 2024

Conversation

trivialfis
Copy link
Member

Close #11075 .

@trivialfis
Copy link
Member Author

cc @david-cortes

@@ -103,8 +103,7 @@ test_that("xgb.DMatrix: saving, loading", {
on.exit(unlink(tmp_file))
expect_true(xgb.DMatrix.save(dtest1, tmp_file))
# read from a local file
expect_output(dtest3 <- xgb.DMatrix(tmp_file), "entries loaded from")
expect_output(dtest3 <- xgb.DMatrix(tmp_file, silent = TRUE), NA)
expect_output(dtest3 <- xgb.DMatrix(tmp_file), NA)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there's no need to remove these tests. Perhaps a new one could be added checking that there is no log when the setting is changed globally and arg. silent is not passed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Brought back the tests.

@trivialfis trivialfis merged commit 98b9b93 into dmlc:master Dec 8, 2024
68 of 73 checks passed
@trivialfis trivialfis deleted the dmatrix-log branch December 8, 2024 14:23
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.

DMatrix loader does not respect verbosity config
2 participants