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

Question: Change LGBMRegressor prediction aggregation #6787

Open
hila-de-moon opened this issue Jan 16, 2025 · 2 comments
Open

Question: Change LGBMRegressor prediction aggregation #6787

hila-de-moon opened this issue Jan 16, 2025 · 2 comments
Labels

Comments

@hila-de-moon
Copy link

How can I change LGBMRegressor predictions so instead of calculating the average of the samples that fall in the leaf it will return median (or other metric).
I want it to be done only in predictions, I want the model to be train regularly with the averages, I cant use objective quantile.

Thank you

@jameslamb
Copy link
Collaborator

Thanks for using LightGBM.

I cant use objective quantile.

Why not? Can you please explain this statement a bit more?

@hila-de-moon
Copy link
Author

yes,

I want to use monotone_constraints that currently doesn't work with objective quantile.
I have a priority on monotone_constraints so I thought i would train with objective regression and monotone_constraints and predict would be the leaf quantile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants