Polynomial Features¶
Generate a new feature matrix consisting of all polynomial combinations of the features with less than a given degree
Configuration: |
|
---|---|
Attributes: |
|
Inputs: | |
Outputs: |
|
Ports:
Outputs:
model: model
Model
Configuration:
- degree
- The degree of the polynomial features. Default = 2.
- interaction_only
- If true, only interaction features are produced: features that are products of at most
degree
distinct input features (so notx ** 2
,x * x ** 3
, etc.).- include_bias
- If True (default), then include a bias column, the feature in which all polynomial powers are zero (i.e. a column of ones - acts as an intercept term in a linear model).
Some of the docstrings for this module have been automatically extracted from the scikit-learn library and are covered by their respective licenses.