Machine Learning, Data Science, Data Scientist, Mlops, Algorithms.
gb_model.fit(X_train, y_train) # Predicting the test set results y_pred_gb = gb_model.predict(X_test) # Evaluating the model mse_gb = mean_squared_error(y_test, y_pred_gb) r2_gb = r2_score(y_test, y_pred_gb) print("MSE:", mse_gb) print("R2 score:", r2_gb) Here is the output. These results indicate