Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapper for forecastHybrid #59

Closed
seabbs opened this issue May 14, 2020 · 0 comments · Fixed by #63
Closed

Wrapper for forecastHybrid #59

seabbs opened this issue May 14, 2020 · 0 comments · Fixed by #63
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@seabbs
Copy link
Contributor

seabbs commented May 14, 2020

fable has been shown to have a memory leak and so is not suitable for large scale applications. forecastHybrid looks like a good drop-in replacement and appears to be a robust package with a good feature set. A potential issue is that it does not support sampling of the forecast out of the box and so an approximation is needed (potentially

A small example of a simple implementation:

library(forecastHybrid)


rts <- EpiSoon::example_obs_rts

y <- rts$rt

model <- forecastHybrid::hybridModel(y, weights = "cv.errors", 
                                     rolling = TRUE, cvHorizon = 7,
                                     horizonAverage = TRUE, 
                                     windowSize = 7)


preds <- forecast(model)


plot(preds)
@seabbs seabbs added enhancement New feature or request help wanted Extra attention is needed labels May 14, 2020
@seabbs seabbs linked a pull request May 15, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant