public class GCQuad
extends java.lang.Object
Wrapper for a perceptron (ConjGradQUAD).
Constructor and Description |
---|
GCQuad() |
Modifier and Type | Method and Description |
---|---|
double[] |
cuaoutput(double[] x)
Calculates the output of a perceptron with weights W for input x
|
double |
cuatrain(int nInputs,
int nOutputs,
double[][] vInputs,
double[][] vOutputs,
Randomize r)
trains a perceptron with Quadratic Conjugated Gradient algorithm and returns
the mean square error of neural network output compared to expected output.
|
void |
scale()
Scales the input examples values and expected output valued
|
public double cuatrain(int nInputs, int nOutputs, double[][] vInputs, double[][] vOutputs, Randomize r)
trains a perceptron with Quadratic Conjugated Gradient algorithm and returns the mean square error of neural network output compared to expected output.
nInputs
- number of inputs in first layernOutputs
- number of output in output layervInputs
- training examplesvOutputs
- expected outputsr
- random generatorpublic double[] cuaoutput(double[] x)
Calculates the output of a perceptron with weights W for input x
x
- the example to give the perceptronpublic void scale()
Scales the input examples values and expected output valued