public class ConjGradQUAD
extends java.lang.Object
Quadratic optimized Classificator/Model by Conjugated Gradient. Also this class is a container for a perceptron neural network and implements the training methods: * Conjugated Gradient: conjugatedGradient. * Descendent Gradient: descentGradient. Input-Layer Hidden Layer-i x nLayers Output-Layer - | I H | I H - | I H O | nInputs | I H O | nOutputs | I H O | | I H O | | I H - | I H -
Constructor and Description |
---|
ConjGradQUAD(double[][] vInput,
double[][] vOutput,
Randomize pr)
Constructor for a perceptron neural network from its basic elements.
|
Modifier and Type | Method and Description |
---|---|
static double[] |
duplicate(double[] x)
Creates and returns a copy of vector x
|
static double[][] |
duplicate(double[][] x)
Creates and returns a copy of vector x
|
static double[][][] |
duplicate(double[][][] x)
Creates and returns a copy of vector x
|
double[] |
quadraticModelOutput(double[] x,
double[][][] W)
Returns the output of the perceptron with weights W for input example x.
|
public ConjGradQUAD(double[][] vInput, double[][] vOutput, Randomize pr)
Constructor for a perceptron neural network from its basic elements.
vInput
- input examples.vOutput
- expected outputs.pr
- Random generator.public static double[] duplicate(double[] x)
Creates and returns a copy of vector x. *
x
- the vector to be copied.public static double[][] duplicate(double[][] x)
Creates and returns a copy of vector x. *
x
- the vector to be copied.public static double[][][] duplicate(double[][][] x)
Creates and returns a copy of vector x. *
x
- the vector to be copied.public double[] quadraticModelOutput(double[] x, double[][][] W)
Returns the output of the perceptron with weights W for input example x.
x
- an input exampleW
- the weights of a perceptron.