Method to calculate loss of the base learner for the gradient boosting calculation.
Method to calculate loss 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.
Ensemble model
Training dataset: RDD of org.apache.spark.mllib.regression.LabeledPoint.
Mean squared error of model 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))
Ensemble model
Instance of the training dataset
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.