One residual tree makes one correction. A booster chains many such corrections, with each new tree seeing what every earlier tree still missed. The fitted model must also replay that same ordered, scaled sequence for unseen inputs.
Implement train_gradient_boosting and predict_gradient_boosting using the existing residual-tree fitter and regression-tree predictor.
float(np.mean(targets)) and one copy per training row.n_trees sequential residual trees; zero trees return an empty list.learning_rate during training and prediction.(initial_prediction, trees) and preserve tree order.Open one at a time. Each gives away a little more than the last.
The next tree must observe the updated predictions, not the original constant prediction.
Training and inference differ only in where the initial prediction and trees came from; both add the same scaled tree outputs in order.
No results yet
Run your code to check it against the examples, or submit to run every test.