Session Ready
Exercise

Predictions on new data

Making predictions ultimately comes down to training a model and then using it! In this exercise, you'll make a prediction on new data using the model you created in the last exercise.

Instructions
100 XP
  • Use the predict() function to estimate the Democrats' vote margin in November if their poll margin today is 7.5 and the Republicans (-1) are the party_in_power.
  • Find the root-mean-square error of the model, the commonly used measure of a model's error that allows you to calculate a margin of error. You want to take the sqrt() of the mean() of the squared (^2) error of the model's predictions.