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.

By

Updated

Cheat sheet: Curves with Polynomial Features
Category
Machine Learning
Level
Journeyman
Tags
ai, Feature (ai), Linear Regression, Polynomial Features, Polynomial Regression, python