public class AbsoluteLoss extends Object implements RegressionObjective
Constructor and Description |
---|
AbsoluteLoss()
Constructs an absolute loss.
|
Modifier and Type | Method and Description |
---|---|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
com.oracle.labs.mlrg.olcut.util.Pair<Double,SGDVector> |
loss(DenseVector truth,
SGDVector prediction)
Deprecated.
|
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.
|
String |
toString() |
@Deprecated public com.oracle.labs.mlrg.olcut.util.Pair<Double,SGDVector> loss(DenseVector truth, SGDVector prediction)
RegressionObjective
loss
in interface RegressionObjective
truth
- The true regression value.prediction
- The predicted regression value.public com.oracle.labs.mlrg.olcut.util.Pair<Double,SGDVector> lossAndGradient(DenseVector truth, SGDVector prediction)
SGDObjective
lossAndGradient
in interface SGDObjective<DenseVector>
lossAndGradient
in interface RegressionObjective
truth
- The true output.prediction
- The prediction for each dimension.public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.