Feature Engineering
Learn how to discover and extract features through domain knowledge and data wrangling techniques.
We'll cover the following...
We'll cover the following...
Not all features are used to train a machine learning model. Some features improve the performance, and others increase the bias. In this lesson, we’ll extract important features for our model using the information gathered in the data exploration step.
Load the dataset
Before we start, let’s import the pertinent libraries and load the dataset.
Data wrangling
In the previous lesson, we learned about exploratory data analysis techniques. Using that knowledge, we’ll shape and prepare our data for our model.
Explanation
Line 2 removes the
StockCodeand theDescriptionfields, as they don't add value in predicting customer revenue. ...