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 evaluation on valids in lightgbm() (fixes #2915) #2916

Merged
merged 1 commit into from
Mar 22, 2020

Conversation

jameslamb
Copy link
Collaborator

See #2915 for details. Getting evaluation on validation sets with the lightgbm() function is currently broken. In this PR, I propose a fix and a test to prevent us from re-introducing the bug.

, "eval_freq" = eval_freq
, "early_stopping_rounds" = early_stopping_rounds
, "init_model" = init_model
, "callbacks" = callbacks
Copy link
Collaborator

Choose a reason for hiding this comment

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

is ... missed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah, yes! Good catch. I'll add that and a test on it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh wait @guolinke no I have it!

train_args <- append(train_args, list(...))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

and it's being tested already because in my tests I have metric = "binary_error" (and metric is not a keyword argument of the lightgbm() function)

, early_stopping_rounds = early_stopping_rounds
, init_model = init_model
, callbacks = callbacks
, ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

is ... missed?

@jameslamb jameslamb merged commit c6245ed into microsoft:master Mar 22, 2020
@jameslamb jameslamb deleted the bugfix/lightgbm-validation 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