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

Prediction outside prediction interval with LGBMRegressor #5296

Closed
masakljun opened this issue Jun 16, 2022 · 2 comments
Closed

Prediction outside prediction interval with LGBMRegressor #5296

masakljun opened this issue Jun 16, 2022 · 2 comments

Comments

@masakljun
Copy link

Description

I am using LGBMRegressor to obtain predictions and prediction intervals as suggested in an article https://developer.ibm.com/articles/prediction-intervals-explained-a-lightgbm-tutorial/. However, the issue I am having is that the predicted point (with alpha set to 0.5) is sometimes outside the prediction interval (alpha = 0.05 and alpha = 0.95). I suppose this is due to the issue of "crossing quantiles", however, I am wondering if there is any fix for this? Thanks in advance!

Reproducible example

Can't share data due to data policy at company.

reg = lgb.LGBMRegressor(objective = 'quantile', alpha = 0.5, learning_rate = 0.05, max_depth = 15, n_estimators = 900, random_state = 0).fit(X_train, y_train)

lower = lgb.LGBMRegressor(objective = 'quantile', alpha = 0.05, learning_rate = 0.05, max_depth = 15, n_estimators = 900, random_state = 0).fit(X_train, y_train)

upper = lgb.LGBMRegressor(objective = 'quantile', alpha = 0.95, learning_rate = 0.05, max_depth = 15, n_estimators = 900, random_state = 0).fit(X_train, y_train)

Environment info

LightGBM version or commit hash:
'3.3.2'

Command(s) you used to install LightGBM
pip install lightgbm

@jmoralez
Copy link
Collaborator

We already have this as a feature request in #3447 and #4201. The problem is described here: #3447 (comment)

@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 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants