hands-on lab

Evaluating Model Predictions for Regression Models

Difficulty: Intermediate
Duration: Up to 43 minutes
Students: 509
Rating: 4.3/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

How do you know if a regression model is a good estimator of what you are trying to predict?
This lab will walk you through building several multivariate linear regression models using different prediction variables and then comparing the model predictions using evaluation tools such as R-squared and Mean Squared Error (MSE).

Learning Objectives

Upon completion of this lab you will be able to:

  • Import data using pandas
  • Prepare data for modeling
  • Build a regression model using scikit-learn
  • Evaluate the regression model using statistics such as R2 and mean squared error
  • Compare multiple models using regression evaluation metrics

Intended Audience

This lab is intended for:

  • Machine learning engineers
  • Anyone interested in evaluating machine learning model performance

Prerequisites

You should possess:

  • A basic understanding of Python

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Opening the Lab's Jupyter Notebook
Solutions to Evaluating Model Predictions for Regression Models