public static interface QuasiNewtonTrainer.Error extends Serializable
This interface defines the function and its derivative with respect to its computed value, .
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 © 1970-2015 Rogue Wave Software
Built October 13 2015.