|
JMSLTM Numerical Library 4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Error function to be minimized by trainer. This trainer attempts to solve the problem
where w are the weights, n is the number of training patterns, is a training target output and is its forecast value.This interface defines the function and its derivative with respect to its computed value, .
Method Summary | |
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. |
Method Detail |
public 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.public 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.
|
JMSLTM Numerical Library 4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |