public static interface QuasiNewtonTrainer.Error extends Serializable
This interface defines the function \(e(y, \hat{y})\) and its derivative with respect to its computed value, \(de/d\hat{y}\).
| Modifier and Type | Method and Description |
|---|---|
double |
error(double[] computed,
double[] expected)
Returns the contribution to the error from a single training output target.
|
double[] |
errorGradient(double[] computed,
double[] expected)
Returns the derivative of the error function with respect to the forecast output.
|
double error(double[] computed,
double[] expected)
computed - A double representing the computed value.expected - A double representing the expected value.double representing the contribution to
the error from a single training output target.double[] errorGradient(double[] computed,
double[] expected)
computed - A double representing the computed value.expected - A double representing the expected value.double representing the derivative of the
error function with respect to the forecast output.Copyright © 2020 Rogue Wave Software. All rights reserved.