January 2018
Beginner to intermediate
316 pages
7h 14m
English
When instantiating polynomial features, there are three parameters to keep in mind:
Degree corresponds to the degree of the polynomial features, with the default set to two.
interaction_only is a boolean that, when true, only interaction features are produced, meaning features that are products of degree distinct features. The default for interaction_only is false.
include_bias is also a boolean that, when true (default), includes a bias column, the feature in which all polynomial powers are zero, adding a column of all ones.
Let's set up a polynomial feature instance by first importing the class and instantiating with our parameters. At first, let's take a look at what features we get when ...
Read now
Unlock full access