Making Predictions and Evaluating Performance

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.

What You'll Learn

In this lesson, you will:

  1. Make predictions with your trained model using the test data.
  2. Evaluate the performance of the model using a confusion matrix.
  3. 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:

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal