public interface PartialLossFunction
extends scala.Serializable
GenericLossFunction
.
Modifier and Type | Method and Description |
---|---|
double |
derivative(double prediction,
double label)
Calculates the derivative of the
PartialLossFunction |
double |
loss(double prediction,
double label)
Calculates the loss depending on the label and the prediction
|
double loss(double prediction, double label)
prediction
- The predicted valuelabel
- The true valuedouble derivative(double prediction, double label)
PartialLossFunction
prediction
- The predicted valuelabel
- The true valueCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.