Created
September 26, 2019 21:47
-
-
Save marcosan93/97a997873e8d6fe713d3809511fbe88e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Splitting 80/20 | |
| index = round(len(bc)*.80) | |
| train = bc_log.iloc[:index] | |
| test = bc_log.iloc[index:] | |
| # Fitting the model to the training set | |
| model = SARIMAX(train, | |
| order=(1, 0, 0), | |
| seasonal_order=(0,0,0,0), | |
| freq='D', | |
| enforce_stationarity=False, | |
| enforce_invertibility=False) | |
| output = model.fit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment