Last active
November 28, 2018 07:09
-
-
Save gonzalezgouveia/0ba56b75dfd6dc8c49a2bb11f7d6af37 to your computer and use it in GitHub Desktop.
ecobici_model_sarima.py
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 statsmodels.tsa.statespace.sarimax import SARIMAX | |
# definir conjunto de datos | |
x = df_mon_to_fri | |
# instanciar modelo | |
sarima_model = SARIMAX(x, order=(2,0,1), seasonal_order=(2, 1, 0, 24)) | |
# ajustar modelo | |
results = sarima_model.fit() | |
# mirar el AIC | |
results.aic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment