liveBook · Manning

Polynomial feature interaction

Also called PolynomialFeatures

A feature-engineering technique that augments inputs with powers and products of existing features up to a specified degree.

How 3 Manning books explain it

Build AI Drug Discovery Pipelines

A polynomial feature is a feature formed by applying powers or products of original input features to represent nonlinear interactions.

How it is used
Uses polynomial expansion to let linear models capture nonlinear relationships in ligand-based screening.
How deep it goes
Explains degree-two and degree-three terms, workflow, interaction meaning, feature explosion, overfitting, and test-set leakage.
Examples
Uses two-feature expansions, molecular fingerprint bits, hERG blocking prediction, and test-set F1 evaluation.
What you can do after
Apply polynomial feature transforms with Scikit-Learn, tune them within training data, and evaluate generalization on a held-out test set.

Read how Build AI Drug Discovery Pipelines explains polynomial feature interaction →

Natural Language Processing in Action, Second Edition

A polynomial feature is a model input formed by raising one or more original features to powers or multiplying them in interactions.

How it is used
Uses nonlinear transformations and interactions to reduce model prediction error during feature engineering.
How deep it goes
Explains diagnostics, transformations, retraining, and dimensional expansion, but stops short of detailed implementation mechanics.
Examples
Demonstrates squares, cubes, roots, logarithms, exponentials, feature multiplication, and sklearn.preprocessing.PolynomialFeatures.
What you can do after
Apply via sklearn.preprocessing.PolynomialFeatures and compare retrained models using residual patterns and test-set accuracy.

Read how Natural Language Processing in Action, Second Edition explains polynomial feature interaction →

Grokking Machine Learning, Second Edition

A scikit-learn transformer that expands input features into polynomial and interaction features up to a specified degree.

How it is used
Transforms curved regression problems into linear models over added polynomial columns.
How deep it goes
Explains powers, degree, fit_transform, splitting, and regularization, but does not detail multi-feature interaction terms.
Examples
Uses a downward-opening parabola, degree-20 expansion, regularized model comparisons, and coefficient inspection.
What you can do after
Build it from scratch with PolynomialFeatures and fit_transform, then fit linear, Lasso, or Ridge models.

Read how Grokking Machine Learning, Second Edition explains polynomial feature interaction →

What to know first

Related concepts

Questions about polynomial feature interaction

What is polynomial feature interaction?

A feature-engineering technique that augments inputs with powers and products of existing features up to a specified degree.

Which Manning books explain polynomial feature interaction?

Build AI Drug Discovery Pipelines, Natural Language Processing in Action, Second Edition and Grokking Machine Learning, Second Edition.

What should I know before learning polynomial feature interaction?

Manning books that teach polynomial feature interaction usually introduce linear regression first.

What is the difference between polynomial feature interaction and molecular fingerprint?

A feature-engineering technique that augments inputs with powers and products of existing features up to a specified degree. A molecular fingerprint is a fixed-length, often binary, representation encoding structural features or substructures of a molecule for computational comparison or modeling.

What is polynomial feature interaction a kind of?

Polynomial feature interaction is a kind of feature engineering. Feature engineering is the creation, transformation, or selection of input features from data to provide useful representations for analysis or modeling.

What is polynomial feature interaction also called?

Polynomial feature interaction is also called PolynomialFeatures.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.