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.

Implement STL forecaster

See original GitHub issue

Is your feature request related to a problem? Please describe. STL forecasting seems a common composite forecaster, so it will be useful to provide a class for it.

There is a STLForecaster in statsmodels.

Describe the solution you’d like It should be a composite forecaster consisting of a TransformedTargetPipeline which accepts any other forecaster and applies the forecaster to deseasonalized and detrended data.

forecaster = STLForecaster(MyForecaster(...), ...)

This should be equivalent to this pipeline:

forecaster = TransformedTargetForecaster(
    [
        ("deseasonalise", Deseasonalizer(...)),
        ("detrend", Detrender(forecaster=PolynomialTrendForecaster(degree=1))),
        ("forecast", MyForecaster(...)),
    ]
)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:23

github_iconTop GitHub Comments

1reaction
fkiralycommented, Jun 15, 2021

Indeed - as a supplementary note, we ran a modified version of test_update_predict_predicted_index_update_params on the instantiated ttf, which takes an object, not a class (i.e., where the “instantiation step” in the test is removed). The test was run with the standard inputs.

1reaction
thayeylolucommented, May 16, 2021

I am on it

Read more comments on GitHub >

github_iconTop Results From Across the Web

STLForecaster — sktime documentation
Implements STLForecaster based on statsmodels.tsa.seasonal.STL implementation. The STLForecaster is using an STL to decompose the given series y into the ...
Read more >
Implement STL forecaster · Issue #782
STL forecasting seems a common composite forecaster, so it will be useful to provide a class for it. There is a STLForecaster in...
Read more >
statsmodels.tsa.forecasting.stl.STLForecast
Model-based forecasting using STL to remove seasonality ... 1.5 * period / (1 - 1.5 / seasonal), following the suggestion in the original...
Read more >
6.6 STL decomposition | Forecasting: Principles and ...
STL is a versatile and robust method for decomposing time series. STL is an acronym for “Seasonal and Trend decomposition using Loess”, while...
Read more >
Forecasting using stl objects
Arguments · object. An object of class stl or stlm . · method. Method to use for forecasting the seasonally adjusted series. ·...
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