-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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] what should LGBM_BoosterGetEvalNames be used for? #4264
Comments
Looks like the issue in docs. Thanks for spotting this! Incorrectness was introduced here: Originally it was
|
Ah ok, thanks! I'll open a PR updating the docs. |
This issue 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. |
Description
While working on #4256, I was confused by the use of
LGBM_BoosterGetEvalNames
. Based on the documentation, I expected that this function would return the names of validation sets.LightGBM/include/LightGBM/c_api.h
Line 587 in f831808
However, I found that in the places where this function is used in the R and Python packages, it seems to actually be returning a list of evaluation metrics.
LightGBM/python-package/lightgbm/basic.py
Lines 3463 to 3481 in f831808
LightGBM/R-package/R/lgb.Booster.R
Lines 684 to 706 in f831808
Is the documentation incorrect? Or have I just misunderstood it?
Reproducible example
The code below uses the same code paths in the Python and R packages linked above. I expected that the output of
LGBM_BoosterGetEvalNames
would be["valid_1"]
(the name I used for one eval set).Python
R
Environment info
LightGBM version or commit hash: latest
master
as of May 6, 2021 (0246721)Command(s) you used to install LightGBM
The text was updated successfully, but these errors were encountered: