Linear Regression, Polynomial Regression, Scikit Learn, Machine Learning, Machine Learning Python.
Pipeline from sklearn.linear_model import LinearRegression model = Pipeline([ ('poly', PolynomialFeatures(degree=2)), ('linear', LinearRegression(fit_intercept=False)) ]) Ok, here we have used degree=2 param for PolynomialFeatures to let Python know we want to simulate 2-nd degree polynomial.