Bias correction for TransformedTargetRegressor
See original GitHub issueDescription
If one is interested in predicting the (conditional on X
) expected value of a target y
, aka mean, then TransformedTargetRegressor
should use a bias corrected inverse transform.
It would be nice to have an option for bias correction in TransformedTargetRegressor
. At least, I would mention this in the user guide.
References
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
sklearn.compose.TransformedTargetRegressor
Meta-estimator to regress on a transformed target. Useful for applying a non-linear transformation to the target y in regression problems. This transformation ...
Read more >Correcting log-transformation bias in a linear model
I am trying to apply Miller's (1984) proposed bias correction to the predicted values (see p. 125). According to the study,.
Read more >Regression — Scikit-learn course - GitHub Pages
On this plot, correct predictions would lie on the diagonal line. ... allows us to detect if the model makes errors in a...
Read more >10 Sklearn Gems Buried In the Docs Waiting To Be Found
That's where you elegantly fix this dilemma with custom transformers. ... TransformedTargetRegressor is a class that accepts both a regressor pipeline on ...
Read more >regression | Andrew Wheeler
Again this does not cause bias in the equation (and so will not ... be the “right” choice (likely due to the degree...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It can also be done numerically. This is how bias correction is handled in fabletools (for R) so that any transformation can be used: https://github.com/tidyverts/fabletools/blob/master/R/transform.R#L102
@robjhyndman Thank you for pointing to the numerical solution. If I understand correctly, this is an additive correction, i.e. the biased corrected prediction is
predict_biased + bias_correction
.