Session Ready
Exercise

Evaluating your model

Now that the model is trained, the next step is to ask how well it performed using known data. To evaluate the model, you can calculate the predicted values and then plot them against the actual data from the dataset. Another option is to correlate the actual and the predicted values - the closer the positive correlation, the better the model performed.

In this case, investigate to see how well your model performed when attempting to predict a student's final grades using their study time.

Instructions
100 XP
  • Calculate the predicted grades using the equation of a line.
  • Plot the results of the prediction, with grades_actual on the x-axis.
  • Run a correlation between your actual and predicted values.