Loading...
Implement one step of Gradient Boosting for regression.
Given current predictions y^ and true values y:
Return the updated predictions, rounded to 4 decimal places.
y_true = [3, 6, 4, 8] y_pred = [2, 5, 3, 7] feature_values = [1, 3, 2, 4] threshold = 2.5 learning_rate = 0.1
[2.1, 5.1, 3.1, 7.1]