question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] (Linear) Quantile Regression

See original GitHub issue

Heya!

At some point, I implemented the LADRegression, which basically minimized sum |y_i - model(X_i)|. This also has the effect that the model over- and underestimates 50% of the time. As in the ImbalancedRegression, we can also penalize over- and underestimations differently, with some parameter quantile. This would have the effect that the model overestimates a share of quantile samples and underestimates in 1-quantile of the cases.

This one would be useful for having some kind of nice confidence intervals around predictions by training a model with quantile=0.05 and another one with quantile=0.95, for example.

I implemented it here. It’s basically a more general LADregression.

How about we put this into scikit-lego and make the LADRegression just a Quantileregression(quantile=0.5)? Or remove it completely.

Best Robert

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
MBrounscommented, Apr 29, 2021

I’d say quantile regression is super useful! indeed AFAIK, scikit-garden is focused on tree-based models so having it in this project makes sense.

I’m okay with having both LADRegression and QuantileRegression around for a while, although we should probably either rewrite LADRegression to use the QuantileRegression, or deprecate the former

1reaction
koaningcommented, Apr 29, 2021

Grand. @Garve feel free to get started on a PR then. I think the example you show here will work swell for the docs too 👍

It’d be preferable to have a PR where the LADRegression uses the QuantileRegression under the hood. Feel free to let me know if there’s a good reason to delay that though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quantile Regression
Quantile regression models the relationship between a set of predictor (independent) variables and specific percentiles (or "quantiles") of a target (dependent) ...
Read more >
Linear Quantile Regression
Linear quantile regression is related to linear least-squares regression in that both are interested in studying the linear relationship between a response ...
Read more >
Quantile Regression
Quantile regression is an extension of linear regression that is used when the conditions of linear regression are not met (i.e., linearity, ...
Read more >
Quantile regression
Quantile regression is an extension of linear regression used when the conditions of linear regression are not met. Example for quantile regression ......
Read more >
[2111.05374] Function-on-function linear quantile regression
Abstract: In this study, we propose a function-on-function linear quantile regression model that allows for more than one functional ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found