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

[R-package] clarified error messages and documentation for lgb.get.eval.result() #2686

Merged
merged 4 commits into from
Jan 24, 2020

Conversation

jameslamb
Copy link
Collaborator

In this PR, I propose some more user-friendly documentation and error messages for lgb.get.eval_result(). I think it would be helpful to be more explicit about how someone can find valid values of data_name and eval_name.

I've also added tests on the validations in this function, since currently they are not covered by tests.

@jameslamb jameslamb requested review from Laurae2 and guolinke January 13, 2020 00:06
R-package/R/lgb.Booster.R Outdated Show resolved Hide resolved
R-package/R/lgb.Booster.R Outdated Show resolved Hide resolved
R-package/R/lgb.Booster.R Outdated Show resolved Hide resolved
R-package/R/lgb.Booster.R Outdated Show resolved Hide resolved
R-package/man/lgb.get.eval.result.Rd Outdated Show resolved Hide resolved
R-package/tests/testthat/test_lgb.Booster.R Outdated Show resolved Hide resolved
R-package/tests/testthat/test_lgb.Booster.R Outdated Show resolved Hide resolved
@StrikerRUS
Copy link
Collaborator

Seems that the latest force-push reverted all fixes applied after review.

@jameslamb
Copy link
Collaborator Author

Seems that the latest force-push reverted all fixes applied after review.

ah sorry! Will fix right now

@jameslamb
Copy link
Collaborator Author

Seems that the latest force-push reverted all fixes applied after review.

ah sorry! Will fix right now

ok @StrikerRUS I've added the changes back in 0e0b1cd and rebased to current master since #2688 was merged

@StrikerRUS
Copy link
Collaborator

@jameslamb Thanks!

@StrikerRUS StrikerRUS merged commit 08fd53c into microsoft:master Jan 24, 2020
@jameslamb jameslamb deleted the tests/get_eval branch January 27, 2020 00:13
@guolinke guolinke added the doc label Mar 1, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants