Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement