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 absolute error of model on data
Method to calculate the gradients for the gradient boosting calculation for least absolute error calculation.
Method to calculate the gradients for the gradient boosting calculation for least absolute error calculation. The gradient with respect to F(x) is: sign(F(x) - y)
Ensemble model
Instance of the training dataset
Loss gradient
:: DeveloperApi :: Class for absolute error loss calculation (for regression).
The absolute (L1) error is defined as: |y - F(x)| where y is the label and F(x) is the model prediction for features x.