ensemble3 = [tree1, tree2, tree3] tree3_pred = sum(tree.predict(X) for tree in ensemble3) >>> r2_score(y, tree3_pred) 0.8772
Measure performance
of current ensemble