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...