T
- The type of the output at training time.public interface SGDObjective<T>
extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Modifier and Type | Method and Description |
---|---|
com.oracle.labs.mlrg.olcut.util.Pair<Double,SGDVector> |
lossAndGradient(T truth,
SGDVector prediction)
Scores a prediction, returning the loss and a vector of per output dimension gradients.
|
com.oracle.labs.mlrg.olcut.util.Pair<Double,SGDVector> lossAndGradient(T truth, SGDVector prediction)
truth
- The true output.prediction
- The prediction for each dimension.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.