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.

forecasting interval and probabilistic prediction interface refactor/re-design

See original GitHub issue

Let’s think about a re-factoring of the forecasting interface for interval and probabilistic predictions.

I think we should have:

  • predict_interval, this should take alpha as in predict and return quantiles; one should be able to pass lists of alpha 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 a skpro-like distribution object. May requires work on skpro, or could use tensorflow-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.

Any opinions? @aiwalter, @mloning, @RNKuhns

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:25

github_iconTop GitHub Comments

2reactions
fkiralycommented, Sep 14, 2021

I’m not aware of any other refactoring that’s ongoing that would interfere with this.

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, in predict, but worth being aware.

We could add the new interface point while maintaining the old one for now, perhaps that’s a first step.

That’s precisely what my STEP suggests in the “downwards compatibility” section 😃

1reaction
mloningcommented, Sep 14, 2021

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 in predict).

Read more comments on GitHub >

github_iconTop 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 >

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