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] fixed handling of multiple evaluation metrics (fixes #2913) #2914

Merged
merged 1 commit into from
Mar 21, 2020

Conversation

jameslamb
Copy link
Collaborator

See the linked issue for details. Training with multiple evaluation metrics is currently broken in the R package, for all cases where the metrics have a different number of characters (e.g. c("auc", "binary_logloss").

We may not have caught this until now because the bug doesn't show up if the metrics have the same number of characters, e.g. c("l1", "l2") or c("rmse", "mape").

I've added tests in this PR which should prevent us from re-introducing this bug.

I also added explicit uses of return() in lgb.params2str() just to make that function a bit more explicit.

Copy link
Collaborator

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

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

LGTM!

@StrikerRUS StrikerRUS merged commit 8d43356 into microsoft:master Mar 21, 2020
@jameslamb jameslamb deleted the bugfix/params2str branch March 25, 2020 20:01
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
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