The problem is while splitting of dataset into train and valid data, I have performed the model prediction on Train data but when i'm using it for valid data its showing error as:
'only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices'
This is the code which i'm applying for valid dataset:
AR_predict=results_AR.predict(start="2014-06-25", end="2014-09-25") AR_predict=AR_predict.cumsum().shift().fillna(0) AR_predict1=pd.Series(np.ones(valid.shape[0]) * np.log(valid['Count'])[0], index = valid.index)
AR_predict1=AR_predict1.add(AR_predict,fill_value=0)
AR_predict = np.exp(AR_predict1)
I'm getting error near first line. I would feel highly obliged if anyone can revert back to me