Skip to content

Instantly share code, notes, and snippets.

@kvnkho
Last active September 6, 2022 03:52
Show Gist options
  • Save kvnkho/d818ab33af5579128cdb664ae0991437 to your computer and use it in GitHub Desktop.
Save kvnkho/d818ab33af5579128cdb664ae0991437 to your computer and use it in GitHub Desktop.
from time import time
import pandas as pd
from statsforecast.utils import generate_series
from statsforecast.models import AutoARIMA
from statsforecast.core import StatsForecast
series = generate_series(n_series=1000000, seed=1)
model = StatsForecast(df=series,
models=[AutoARIMA()],
freq='D',
n_jobs=-1,
ray_address=ray_address)
init = time()
forecasts = model.forecast(7)
print(f'n_series: 1000000 total time: {(time() - init) / 60}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment