Slackbot
06/29/2023, 2:40 PMAkmal Soliev
06/29/2023, 2:59 PMfrom statsforecast import StatsForecast
from statsforecast.models import (
AutoARIMA,
)
# Create a list of models and instantiation parameters
models = [
AutoARIMA(season_length=24),
]
# Instantiate StatsForecast class as sf
sf = StatsForecast(
df=Y_df,
models=models,
freq='H',
n_jobs=-1,
verbose=True
)
sf.fit()
fitted_model = sf.fitted_
# save the models with pickle
Akmal Soliev
06/29/2023, 3:01 PMempty_models = []
sf2 = StatsForecast(
df=Y_df,
models=test_models,
freq='H',
n_jobs=-1,
verbose=True
)
sf2.models = fitted_model
Akmal Soliev
06/29/2023, 3:05 PMfitted_model
is multi-dim array that you can use to index it based on the prefered model and its iterationsDeepanjan Datta
09/24/2023, 4:58 PMNasreddine D
10/02/2023, 9:11 PMAkmal Soliev
10/03/2023, 2:40 PMIn step 2, you put "test_models", where does it come from?from the saved file, let's say pickle
Last question, does it work to save a model that we used with cross_validation?Haven't played with that, hence, cannot answer.
Akmal Soliev
10/13/2023, 4:25 PM