O'Reilly logo

Mastering Predictive Analytics with scikit-learn and TensorFlow by Alan Fontaine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required