public interface RegressionObjective extends SGDObjective<DenseVector>
Modifier and Type | Method and Description |
---|---|
com.oracle.labs.mlrg.olcut.util.Pair<Double,SGDVector> |
loss(DenseVector truth,
SGDVector prediction)
Deprecated.
In 4.1 to move to the new name, lossAndGradient.
|
default com.oracle.labs.mlrg.olcut.util.Pair<Double,SGDVector> |
lossAndGradient(DenseVector truth,
SGDVector prediction)
Scores a prediction, returning the loss and a vector of per output dimension gradients.
|
@Deprecated com.oracle.labs.mlrg.olcut.util.Pair<Double,SGDVector> loss(DenseVector truth, SGDVector prediction)
truth
- The true regression value.prediction
- The predicted regression value.default com.oracle.labs.mlrg.olcut.util.Pair<Double,SGDVector> lossAndGradient(DenseVector truth, SGDVector prediction)
SGDObjective
lossAndGradient
in interface SGDObjective<DenseVector>
truth
- The true output.prediction
- The prediction for each dimension.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.