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.

[ENH] Behaviour modifying compositors for forecasting

See original GitHub issue

Is your feature request related to a problem? Please describe. In the Feb 2 meeting it was discussed that some behaviours in evaluation might actually be “business of the model” rather than of the evaluation. Irrespectively, even if evaluation workflows implement some of these behaviours, it might also be useful to have certain rules as behaviour modifying compositors for forecasters.

Describe the solution you’d like It might be useful to implement wrapper compositors that modify the behaviour of fitting/updating:

  • “sliding window update modifier” - wraps a Forecaster and replaces update of the wrapped estimator with a sliding window re-fit. Hyper-parameters are sliding window parameters.
  • “re-fit after T time modifier” - wraps a Forecaster and replaces update with the following meta-algorithm: if time since last fit is <T, then call update of wrapped forecaster. Otherwise, re-fit to a pre-specified window (fixed length or all past). Hyper-parameters are T and the window specs.
  • “re-fit once forecast error is too large” - wraps a Forecaster and replaces update with the following meta-algorihtm: re-fits if forecast error, evaluated in a certain way, exceeds a threshold; otherwise calls the wrapped update. To check the condition, internally calls the evaluator. Hyper-parameters are: evaluation parameters, including loss metric; threshold that needs to be passed for re-fit to be triggered. Could be dynamic, so might be interesting to think about how to make this more abstract to allow arbitrary smoothers/anomaly detectors on the loss metric.

Describe alternatives you’ve considered The alternative would be to have “merged/contracted” estimators or composites in cases where these compositors might be applied instead, e.g., as hyper-parameter options of grid search tuners.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ZiyaoWeicommented, Jul 27, 2022

I’m interested in trying to do this if it’s still relevant - I assume this would be implementing a couple new forecasters in the same sktime.forecasting.stream package?

1reaction
fkiralycommented, Feb 3, 2021

@mloning, yes, your idea sounds like an improvement over mine. Perhaps one “conditional refitter (simple)” and one “pipeline conditional refitter (adtk style)”?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workstream: forecasting and series transformers · GitHub
[ENH] Behaviour modifying compositors for forecasting ... [ENH] refactor panel transformers that are incorrectly labelled to series transformers.
Read more >
Forecasting: theory and practice - ScienceDirect.com
A stochastic model provides a data generating process that can be used to produce prediction intervals and entire prediction distributions in addition to...
Read more >
Uncertainty Matters: Bayesian Probabilistic Forecasting for ...
This paper uses Bayesian Structural Time Series for probabilistic load forecasting at the residential building level to capture uncertainties in forecasting. We ...
Read more >
Forecasting, causality and feedback - Rob J Hyndman
causality and prediction in an innovative analysis, and casting some ... forecasts independently having the power to modify user behaviour.
Read more >
Explore Programs: University Division: Indiana University Bloomington
The Economic Consulting major trains students in forecasting techniques and in ... ENG-W 131 Elementary CompositionEC; *ENG-W 170 Projects in Reading and ...
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