Welcome back! You've already taken a huge step by building and evaluating a logistic regression model in the previous lesson. Now, let's move forward and see how to make predictions using this model and evaluate its performance.
In this lesson, you will:
- Make predictions with your trained model using the test data.
- Evaluate the performance of the model using a
confusion matrix
. - Understand what the evaluation results mean for your model.
By the end of this lesson, you will be able to:
- Use the
predict
function in R to generate predictions from your logistic regression model. - Interpret a
confusion matrix
to understand the performance of your model.
You must be familiar with most of the code shown below from previous units. The prediction step, added here, will be our focus in this lesson:
