public class HingeGradient extends Gradient
| Constructor and Description | 
|---|
HingeGradient()  | 
| Modifier and Type | Method and Description | 
|---|---|
scala.Tuple2<Vector,Object> | 
compute(Vector data,
       double label,
       Vector weights)
Compute the gradient and loss given the features of a single data point. 
 | 
double | 
compute(Vector data,
       double label,
       Vector weights,
       Vector cumGradient)
Compute the gradient and loss given the features of a single data point,
 add the gradient to a provided vector to avoid creating new objects, and return loss. 
 | 
public scala.Tuple2<Vector,Object> compute(Vector data, double label, Vector weights)
Gradient