public class MSEOptimizablePUNeuralNetClassifier extends NeuralNetClassifier implements IOptimizableFunc
Modifier and Type | Field and Description |
---|---|
protected double |
lastError
Wrapped algorithm
|
hiddenLayers, inputLayer, outputLayer, XML
Constructor and Description |
---|
MSEOptimizablePUNeuralNetClassifier() |
Modifier and Type | Method and Description |
---|---|
double[] |
getCoefficients()
Returns the initial value of a[], that is, the coefficients of
the model
B01 B02 ...
|
double |
getLastError()
Last error of the model
|
double[] |
gradient(double[][] x,
double[][] y)
Returns the gradient vector of the derivative of MSE error function
with respect to each coefficient of the model, using an input observation
matrix (x[]) and an expected output matrix (y[])
|
void |
setCoefficients(double[] a)
Establish the final value of a[], that is, the coefficients of
model
B01 B02 ...
|
classify, classify, rawOutputs, rawOutputs, softmaxProbabilities, softmaxProbabilities
addHlayer, copy, equals, getHlayer, getInputLayer, getNofhlayers, getNofhneurons, getNoflinks, getOutputLayer, hashCode, keepRelevantLinks, linksEmpty, linksFull, neuronsEmpty, neuronsFull, setInputLayer, setOutputLayer, toString
public double[] getCoefficients()
Returns the initial value of a[], that is, the coefficients of the model B01 B02 ... B0(J-1) [W11 W12 ... B11 B12 B1(J-1)]* ...
getCoefficients
in interface IOptimizableFunc
public void setCoefficients(double[] a)
Establish the final value of a[], that is, the coefficients of model B01 B02 ... B0(J-1) [W11 W12 ... B11 B12 B1(J-1)]* ...
setCoefficients
in interface IOptimizableFunc
a
- array of final coefficients values
public double[] gradient(double[][] x, double[][] y)
Returns the gradient vector of the derivative of MSE error function with respect to each coefficient of the model, using an input observation matrix (x[]) and an expected output matrix (y[])
gradient
in interface IOptimizableFunc
x
- Array with all inputs of all observationsy
- Array with all expected outputs of all observationspublic double getLastError()
Last error of the model
getLastError
in interface IOptimizableFunc