Explore Courses Blog Tutorials Interview Questions
0 votes
in Data Science by (120 points)

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_predict = np.exp(AR_predict1)
I'm getting error near first line. I would feel highly obliged if anyone can revert back to me

Please log in or register to answer this question.

Related questions

Browse Categories