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
- label
- double derivative(double prediction, double label)
PartialLossFunction
prediction
- label
- Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.