Linear Regression, Polynomial Regression, Scikit Learn, Machine Learning, Machine Learning Python.
our experiment, called PolynomialFeatures. But let’s prepare our dataset first (based on 2-nd degree polynomial with some random deviation): import numpy as np import pandas as pd x = np.arange(1, 101) y = 2 * x * x - x + 4 + np.random.randint(-10,10,100)*x df = pd.DataFrame({"x":x,"y":y}); Now df