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

[docs] clarify that custom eval functions are not only used on training data #5011

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

jameslamb
Copy link
Collaborator

Continues #5002.
Fixes #4759.

The intent of changes proposed in #4759 was to clarify that in lgb.train() and lgb.cv(), the Dataset passed to custom evaluation functions isn't always "the training data", but that instead it can be either the training data or a validation set.

This PR clarifies that in a few additional places. I found those places like this:

git grep 'Customized evaluation function'

As of this PR, the documentation on custom evaluation functions would be identical and not say "the training data" for cv(), train(), and Booster.eval().

I think that it's ok for Booster.eval_train() to say "the training dataset" and for Booster.eval_valid() to say "the validation dataset", since those are specific to those contexts.

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.

Thanks for double checking!

@StrikerRUS
Copy link
Collaborator

Maybe close-reopen will help with CLA bot...
#4959 (comment)

@StrikerRUS StrikerRUS closed this Feb 16, 2022
@StrikerRUS StrikerRUS reopened this Feb 16, 2022
@StrikerRUS
Copy link
Collaborator

Maybe close-reopen will help with CLA bot...

It helped! 🎉

image

@jameslamb jameslamb merged commit 717631a into master Feb 17, 2022
@jameslamb jameslamb deleted the docs/eval-data branch February 17, 2022 19:38
@jameslamb jameslamb mentioned this pull request Oct 7, 2022
40 tasks
@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 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
2 participants