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

[<Library component: Models|Core|etc...>] Documentation Error: Instantiating StatsForecast #986

Open
Daaku-C5 opened this issue Feb 18, 2025 · 0 comments

Comments

@Daaku-C5
Copy link

Description

In the documentation, it says:

We fit the models by instantiating a new StatsForecast object with the following parameters:
models: a list of models. Select the models you want from models and import them.
freq: a string indicating the frequency of the data. (See pandas available frequencies.)
n_jobs: n_jobs: int, number of jobs used in the parallel processing, use -1 for all cores.
fallback_model: a model to be used if a model fails.

the relevant code is given as:
sf = StatsForecast(
models=models,
freq=1, <-----------
fallback_model = SeasonalNaive(season_length=7),
n_jobs=-1,
)

----It should be freq = 'D'
When using freq=1, I get an error Invalid Freq '1'

Link

https://nixtlaverse.nixtla.io/statsforecast/docs/getting-started/getting_started_complete.html#explore-data-with-the-plot-method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant