- Scroll to the empty cells at the bottom of Subtopic Introduction to Predictive Analysis in your Jupyter Notebook. These will be found beneath the linear-model MSE calculation cell under the Activity heading.
- Given that our data is contained in the DataFrame df, we will first pull out our dependent feature and target variable using the following:
y = df['MEDV'].values x = df['LSTAT'].values.reshape(-1,1)
This is identical to what we did earlier for the linear model.
- Check out what x looks like by printing the first few samples with ...