-
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
How to set qid when predict in LGBMRanker? #1398
Comments
qid is not needed in prediction. LightGBM will predict the relevant score, and you should rank the result by yourself. |
@guolinke is it possible to elaborate more on this? Shall one make predictions on each group separately? What is the output of the |
@mlisovyi qid have no effects on ranking predictions in lgb.predict, as the predicted results are the relevant scores. And you can use the relevant scores to get the correct ranking order results by yourself, and qid is needed in this step. |
I see... How to treat negative values in the predictions? |
@mlisovyi the same, you can just sort by prediction values. |
but, not in same query group, is the scores can be comparable? |
@nonva theoretically, they could be comparable. |
In python, qid can be set to group in fit(X, y, group), but predict() has no parameter group, so where to set qid?
The text was updated successfully, but these errors were encountered: