Mar-15-2020, 12:57 PM
(Mar-14-2020, 04:22 PM)jefsummers Wrote: May be running into 2 variables - predictions and predictions[].
Idea - go back and in line 1 putpredictions[]Then, in your prediction line use
predictions.append(pd.DataFrame(model.predict(X[train_size:]), columns=[i]))Then you should have an array of dataframes. You can examine each one, and you can combine them into a single frame later.
When i run
predictions[]in the first line, it return an "invalid syntax".