Skip to content

Instantly share code, notes, and snippets.

@tomonori-masui
Created July 3, 2021 18:11
Show Gist options
  • Save tomonori-masui/720846fd765dd7711fa221770f8261e4 to your computer and use it in GitHub Desktop.
Save tomonori-masui/720846fd765dd7711fa221770f8261e4 to your computer and use it in GitHub Desktop.
ts_wpi.index = ts_wpi.index.to_period("Q")
test_len = int(len(ts_wpi) * 0.25)
wpi_train, wpi_test = ts_wpi.iloc[:-test_len], ts_wpi.iloc[-test_len:]
forecaster = AutoARIMA(suppress_warnings=True)
forecaster.fit(wpi_train)
forecaster.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment