Method to calculate error of the base learner for the gradient boosting calculation.
Method to calculate error of the base learner for the gradient boosting calculation. Note: This method is not used by the gradient boosting algorithm but is useful for debugging purposes.
Model of the weak learner.
Training dataset: RDD of org.apache.spark.mllib.regression.LabeledPoint.
Measure of model error on data
Method to calculate the gradients for the gradient boosting calculation for least squares error calculation.
Method to calculate the gradients for the gradient boosting calculation for least squares error calculation. The gradient with respect to F(x) is: - 2 (y - F(x))
Predicted label.
True label.
Loss gradient
:: DeveloperApi :: Class for squared error loss calculation.
The squared (L2) error is defined as: (y - F(x))**2 where y is the label and F(x) is the model prediction for features x.