Creating new features

We will be using the credit card default and diamond datasets here. Now, let’s go to the Jupyter Notebook to create new features and see what these techniques are in practice:

Let's import the credit card default dataset by executing a few commands, as shown in the following screenshot:

The first transformation that we will do is to create another way to encode the information that we have in the education feature. So far, we have been using one encoding technique in the education feature, and we will use the context ...

Get Mastering Predictive Analytics with scikit-learn and TensorFlow now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.