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

XGBRanker documentation: few clarifications #8356

Merged
merged 1 commit into from
Oct 18, 2022
Merged

XGBRanker documentation: few clarifications #8356

merged 1 commit into from
Oct 18, 2022

Conversation

luca-s
Copy link
Contributor

@luca-s luca-s commented Oct 18, 2022

I would like to propose these updates to the documentation of XGBRanker to clarify few aspects:

  • predict method can work on multiple groups. I found several online resources that suggests to split the input data by group and call predict on each group individually. I believe this is a misconception derived by the group/qid parameter requirement in the fit method.
  • qid parameter in fit method needs an example on how it can be used. I couldn't find an online example that makes use of it.

I do not believe my text is particularly good, but if you could just consider the intent and maybe find a better way of writing it, than it would be great as well.

Thanks.

I would like to propose these updates to the documentation of XGBRanker to clarify few aspects:
- `predict` method can work on multiple groups. I found several online resources  that suggests to split the input data by group and call `predict` on each group individually.  believe this is a misconception derived by the `group`/`qid` parameter requirement in the `fit` method.
- `qid` parameter in `fit` method needs an example on how it can be used. I couldn't find an online example that makes use of it.

I do not believe my text is particularly good, but if you could just consider the intent and maybe find a better way of writing it, than it would be great as well.

Thanks.
Copy link
Member

@trivialfis trivialfis left a comment

Choose a reason for hiding this comment

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

Thank you for the improvements!

@trivialfis trivialfis merged commit c47c71e into dmlc:master Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants