-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
can't use ranking with label value >= 31 #1090
Comments
you should set “label_gain” |
that doesnt seem to be one of the parameters either on LGBMRanker or on the fit() function in sklearn interface? also, how come it works for labels with values < 31, and why is the message so strange? i looked in the code and can't figure out how it can even enter into the branch with that statement, given the values it is printing out setting label_gain to any value does change the message, given the code above, it is always: edit: ok it works if i set it to an array that is the size of my maximum label size. thanks for help and would be nice to document! |
closing although i think error message, documentation and sklearn interface could use a touch up :) thanks again |
@StrikerRUS can you help to add this to the document ? |
@guolinke Sure, will do it today. |
how to change label_gain in Python API? I can't find it whether in LGBMRanker or in the fit() function. |
@Edmondguo Use |
hi Edmondguo, do you figure out this problem? because I also cannot find it.....thank you so much |
Hi, @alexeib What's "the size of my maximum label size" means? if my label is: 1,2,3,...,100,1,2,3,...,200,1,2,3,...,1000, how to set my “label_gain”? |
@cmcai0104 |
will get an error:
lightgbm.basic.LightGBMError: b'label (31) excel the max range 31'
using any value less than 31 in labels works fine. using any value >= 31 will always produce the error above, with the "max range" being the max value of the label (but it will always say (31) for label value)
The text was updated successfully, but these errors were encountered: