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

Saved Prefitted ARIMA Base Forecasts for TourismL #136

Open
kdgutier opened this issue Dec 17, 2022 · 1 comment
Open

Saved Prefitted ARIMA Base Forecasts for TourismL #136

kdgutier opened this issue Dec 17, 2022 · 1 comment
Assignees

Comments

@kdgutier
Copy link
Collaborator

It would be convenient to have prefitted ARIMA base forecasts for medium and large datasets on S3.

  • We guarantee replicability.
  • We can save a lot of time for potential users and other researchers.
  • Circle CI tests that check time efficiency can greatly benefit from this dataset.
@mergenthaler
Copy link
Member

mergenthaler commented Dec 17, 2022

Concretely this block:

%%capture
if os.path.isfile('Y_hat.csv'):
    Y_hat_df = pd.read_csv('Y_hat.csv')
    Y_fitted_df = pd.read_csv('Y_fitted.csv')

    Y_hat_df = Y_hat_df.set_index('unique_id')
    Y_fitted_df = Y_fitted_df.set_index('unique_id')
else:
    fcst = StatsForecast(
        df=Y_train_df, 
        models=[AutoARIMA(season_length=12)],
        fallback_model=[Naive()],
        freq='M', 
        n_jobs=-1
    )
    Y_hat_df = fcst.forecast(h=12, fitted=True, level=[80])
    Y_fitted_df = fcst.forecast_fitted_values()
    Y_hat_df.to_csv('Y_hat.csv')
    Y_fitted_df.to_csv('Y_fitted.csv')

In this nb: https://github.com/Nixtla/hierarchicalforecast/blob/main/nbs/examples/TourismLarge-Evaluation.ipynb

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

No branches or pull requests

3 participants