public class AbsoluteError
extends Object
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.
| Constructor and Description | 
|---|
| AbsoluteError() | 
| Modifier and Type | Method and Description | 
|---|---|
| static double | gradient(double prediction,
        double label)Method to calculate the gradients for the gradient boosting calculation for least
 absolute error calculation. | 
public static double gradient(double prediction,
                              double label)
prediction - Predicted label.label - True label.