public abstract class Network extends Object implements Serializable
| Constructor and Description |
|---|
Network()
Default constructor for
Network. |
| Modifier and Type | Method and Description |
|---|---|
double[] |
computeStatistics(double[][] xData,
double[][] yData)
Computes error statistics.
|
abstract HiddenLayer |
createHiddenLayer()
Creates the next
HiddenLayer in the Network. |
abstract double[] |
forecast(double[] x)
Returns a forecast for each of the
Network's outputs
computed from the trained Network. |
abstract double[][] |
getForecastGradient(double[] x)
Returns the derivatives of the outputs with respect to the weights.
|
abstract InputLayer |
getInputLayer()
Returns the
InputLayer object. |
abstract Link[] |
getLinks()
Returns an array containing the
Link objects in the
Network. |
abstract int |
getNumberOfInputs()
Returns the number of
Network inputs. |
abstract int |
getNumberOfLinks()
Returns the number of
Network Links among the
nodes. |
abstract int |
getNumberOfOutputs()
Returns the number of
Network output Perceptrons. |
abstract int |
getNumberOfWeights()
Returns the number of weights in the
Network. |
abstract OutputLayer |
getOutputLayer()
Returns the
OutputLayer. |
abstract Perceptron[] |
getPerceptrons()
Returns an array containing the
Perceptrons in the
Network. |
abstract double[] |
getWeights()
Returns the weights.
|
abstract void |
setWeights(double[] weights)
Sets the weights.
|
public Network()
Network.
Since this class is abstract, it cannot be instantiated directly;
this constructor is used by constructors in classes derived from
Network.public double[] computeStatistics(double[][] xData,
double[][] yData)
This is a static method that can be used to compute the statistics
regardless of the training class used to train the Network.
Computes statistics related to the error. In this table, the
observed values are
. The forecasted values are
. The mean observed value is
, where N is the number of
observations and C is the number of classes per observation.
| Index | Name | Formula |
| 0 | SSE | |
| 1 | RMS | |
| 2 | Laplacian | |
| 3 | Scaled Laplacian | |
| 4 | Max residual |
xData - A double matrix containing the input values.yData - A double array containing the observed
values.double array containing the above described
statistics.public abstract HiddenLayer createHiddenLayer()
HiddenLayer in the Network.HiddenLayer.public abstract double[] forecast(double[] x)
Network's outputs
computed from the trained Network.x - A double array of values with the same length and
order as the training patterns used to train the
Network.double array containing the forecasts for the
output Perceptrons. Its length is equal to the
number of output Perceptrons.public abstract double[][] getForecastGradient(double[] x)
x - A double array which specifies the input
values at which the gradient is to be evaluated.double array containing the gradient values.
The value of gradient[i][j] is
public abstract InputLayer getInputLayer()
InputLayer object.Network InputLayer.public abstract Link[] getLinks()
Link objects in the
Network.Links associated with this
Network.public abstract int getNumberOfInputs()
Network inputs.int which contains the number of inputs.public abstract int getNumberOfLinks()
Network Links among the
nodes.int which contains the number of Links in
the Network.public abstract int getNumberOfOutputs()
Network output Perceptrons.int which contains the number of outputs.public abstract int getNumberOfWeights()
Network.int which contains the number of weights
associated with this Network.public abstract OutputLayer getOutputLayer()
OutputLayer.Network OutputLayer.public abstract Perceptron[] getPerceptrons()
Perceptrons in the
Network.Perceptrons associated with this
Network.public abstract double[] getWeights()
double array containing the weights
associated with Network Links.public abstract void setWeights(double[] weights)
weights - A double array which specifies the weights
to be associated with Network Links.Copyright © 1970-2015 Rogue Wave Software
Built June 18 2015.