ensemble2 = [tree1, tree2] tree2_pred = sum(tree.predict(X) for tree in ensemble2) >>> r2_score(y, tree2_pred) 0.8120
Measure performance
of current ensemble