forecasting interval and probabilistic prediction interface refactor/re-design
See original GitHub issueLet’s think about a re-factoring of the forecasting interface for interval and probabilistic predictions.
I think we should have:
predict_interval
, this should takealpha
as inpredict
and return quantiles; one should be able to pass lists ofalpha
too (if the forecaster supports it). If a list is passed, we need to think about the return object - perhaps a data frame, with nested column index if we are in the multivariate case? Or, we could annotate columns[variablename]__[statistic]
, e.g.,temperature__P95
using the reserved double-underscore.predict_var
, this should return predictive variance (not quantiles) - note that that’s what comes out Gaussian process type regressors primarily.predict_proba
, this returns askpro
-like distribution object. May requires work onskpro
, or could usetensorflow-probability
distributions.
For the first two, we could alternatively think about return flags and return objects in predict
, but that just seems very messy to me.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:25
Top Results From Across the Web
3.5 Prediction intervals | Forecasting: Principles and ... - OTexts
As discussed in Section 1.7, a prediction interval gives an interval within which we expect yt y t to lie with a specified...
Read more >Prediction Interval Adjustment for Load-Forecasting using ...
In this paper, we develop a probabilistic load-forecasting method based on Association Rules and Artificial Neural Networks for Short-Term Load Forecasting (2 h ......
Read more >Evaluating epidemic forecasts in an interval format - PLOS
There is a growing consensus in infectious disease epidemiology that epidemic forecasts should be probabilistic in nature, i.e., should not only ...
Read more >Confidence Interval vs Prediction Interval | Analytics Vidhya
In other words, the prediction interval is for future observations which tells that what is the probability that future observations will lie in ......
Read more >Probabilistic Prediction Intervals of Wind Speed Based on ...
With the rapid growth of wind power penetration into modern power grids, wind speed forecasting plays an increasingly significant role in ...
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
Not refactoring, but a minor interface change, #1410, might interfere, since it also changes the base forecasters’
predict
. It’s probably not going to touch the same lines though, inpredict
, but worth being aware.That’s precisely what my STEP suggests in the “downwards compatibility” section 😃
I’m not aware of any other refactoring that’s ongoing that would interfere with this. It’s hard to say whether to split it up further. We could add the new interface point while maintaining the old one for now, perhaps that’s a first step. Then if everything works, we could deprecate the old way of generating prediction intervals (i.e. via the
return_pred_int
argument inpredict
).