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

custom the objective function for LTR #3381

Closed
chloe-wang opened this issue Sep 11, 2020 · 2 comments
Closed

custom the objective function for LTR #3381

chloe-wang opened this issue Sep 11, 2020 · 2 comments

Comments

@chloe-wang
Copy link

Hi there,

I noticed that there is a sample for custom objective:
https://github.com/Microsoft/LightGBM/blob/master/R-package/demo/multiclass_custom_objective.R

However, how shall we define a custom objective when the objective includes some other information other than preds and dtrain? For example, in the lambdarank case, we may have the query_id information as well.

@chloe-wang
Copy link
Author

I figure it out.

@github-actions
Copy link

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.

@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
None yet
Projects
None yet
Development

No branches or pull requests

1 participant