In boosting, learning_rate and n_estimators pull against each other: a small rate needs many trees, a big rate needs few. You want to compare some pairs on the breast cancer data.
Write boosting_pairs(pairs). Each pair is [learning_rate, n_estimators].
load_breast_cancer(return_X_y=True, as_frame=True) and split it with train_test_split(X, y, test_size=0.25, random_state=0, stratify=y).GradientBoostingClassifier(learning_rate=rate, n_estimators=trees, max_depth=2, random_state=0) on the training rows.Return a list with one [rate, trees, train_score, test_score] per pair, with both scores rounded to 3 places.