public class SquaresErrorQUAD extends FUN
Derived class from FUN that implements the error for a perceptron trained with quadratic conjugated gradient.
Modifier and Type | Field and Description |
---|---|
ConjGradQUAD |
Cua
Neural network container.
|
Constructor and Description |
---|
SquaresErrorQUAD(ConjGradQUAD vCua,
double[][] vInput,
double[][] vOutput)
Constructor of an error calculator for neural network based on the quadratic conjugated gradient.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double[][][] x)
Returns the training mean square error for a perceptron with weights x
|
public ConjGradQUAD Cua
public SquaresErrorQUAD(ConjGradQUAD vCua, double[][] vInput, double[][] vOutput)
Constructor of an error calculator for neural network based on the quadratic conjugated gradient.
vCua
- the perceptron.vInput
- input examplesvOutput
- expected output