.
sklearn.metrics import accuracy_score accuracy = accuracy_score(y_test, y_pred) print("Accuracy:", accuracy) Here are some additional tips for using GradientBoostingClassifier: Use the n_estimators parameter to control the number of trees in the forest. A higher value of n_estimators will generally