Stock Price Prediction, Linear Regression.
PolynomialFeatures from sklearn.metrics import r2_score # Create polynomial features poly_features = PolynomialFeatures(degree=2) # We choose a polynomial of degree 2 X_train_poly = poly_features.fit_transform(X_train) # Fit the polynomial regression model poly_reg = LinearRegression()