Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
The Supervised Learning Workshop - Second Edition

You're reading from  The Supervised Learning Workshop - Second Edition

Product type Book
Published in Feb 2020
Publisher Packt
ISBN-13 9781800209046
Pages 532 pages
Edition 2nd Edition
Languages
Authors (4):
Blaine Bateman Blaine Bateman
Profile icon Blaine Bateman
Ashish Ranjan Jha Ashish Ranjan Jha
Profile icon Ashish Ranjan Jha
Benjamin Johnston Benjamin Johnston
Profile icon Benjamin Johnston
Ishita Mathur Ishita Mathur
Profile icon Ishita Mathur
View More author details

Importing the Modules and Preparing Our Dataset

In the previous exercises and activities, we used terms such as Mean Absolute Error (MAE) and accuracy. In machine learning terms, these are called evaluation metrics and, in the next sections, we will discuss some useful evaluation metrics, what they are, and how and when to use them.

Note

Although this section is not positioned as an exercise, we encourage you to follow through this section carefully by executing the presented code. We will be using the code presented here in the upcoming exercises.

We will now load the data and models that we trained as part of Chapter 6, Ensemble Modeling. We will use the stacked linear regression model from Activity 6.01, Stacking with Standalone and Ensemble Algorithms, and the random forest classification model to predict the survival of passengers from Exercise 6.06, Building the Ensemble Model Using Random Forest.

First, we need to import the relevant libraries:

import pandas as...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}