## Regression forecasting and predicting – Practical Machine Learning Tutorial with Python p.5

In this video, make sure you define the X's like so. I flipped the last two lines by mistake: X = np.array(df.drop(['label'],1))X = preprocessing.scale(X)X_lately = X[-forecast_out:]X = X[:-forecast_out:]To forecast out,…