Stock Price Prediction, Linear Regression.
poly_reg.fit(X_train_poly, y_train) # Evaluate the model on the testing set X_test_poly = poly_features.transform(X_test) y_pred = poly_reg.predict(X_test_poly) # Calculate the R^2 score score = r2_score(y_test, y_pred) print("R^2 Score:", score) Please Follow and 👏 Clap for the story courses teach