def update_terminal_regions(self, tree, X, y, residual, y_pred,
                                sample_weight, sample_mask,
                                learning_rate=1.0, k=0):
        # update predictions
        y_pred[:, k] += learning_rate * tree.predict(X).ravel()
Least squares does not need to update terminal regions.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/ensemble/gradient_boosting.py/LeastSquaresError.update_terminal_regions