Last active
September 6, 2022 03:52
-
-
Save kvnkho/d818ab33af5579128cdb664ae0991437 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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