# Curves with Polynomial Features

When the label rises and then falls, a straight line misses both ends, but adding a squared copy of a feature lets a linear regression draw a curve; PolynomialFeatures makes those columns, fit on the training rows and used to transform both parts, and a high degree swings wildly at the edges of the data.

![Cheat sheet: Curves with Polynomial Features](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/18975a06218146ad8d7254f4ce5c53e1.webp)

- Category: Machine Learning
- Level: Journeyman
- Tags: ai, Feature (ai), Linear Regression, Polynomial Features, Polynomial Regression, python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/ml-polynomial-features-cheat-sheet
