public class Huber extends Object implements RegressionObjective
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)
Scores a prediction, returning the loss.
|
void |
postConfig()
Used by the OLCUT configuration system, and should not be called by external code.
|
String |
toString() |
public void postConfig()
postConfig
in interface com.oracle.labs.mlrg.olcut.config.Configurable
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.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.