Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. # Splitting 80/20
  2. index = round(len(bc)*.80)
  3. train = bc_log.iloc[:index]
  4. test = bc_log.iloc[index:]
  5.  
  6. # Fitting the model to the training set
  7. model = SARIMAX(train,
  8. order=(1, 0, 0),
  9. seasonal_order=(0,0,0,0),
  10. freq='D',
  11. enforce_stationarity=False,
  12. enforce_invertibility=False)
  13. output = model.fit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement