Method | Description | |
---|---|---|
CalculateError ( IMLDataSet data ) : double |
Calculate the error for this neural network. The error is calculated using root-mean-square(RMS).
|
|
ClearConnectionLimit ( ) : void |
Clear any connection limits.
|
|
ClearContext ( ) : void |
Clear any context neurons.
|
|
Clone ( ) : Object |
Clone the network.
|
|
CloneFlatNetwork ( |
Clone into the flat network passed in.
|
|
Compute ( double input, double output ) : void |
Calculate the output for the given input.
|
|
DecodeNetwork ( double data ) : void |
Decode the specified data into the weights of the neural network. This method performs the opposite of encodeNetwork.
|
|
EncodeNetwork ( ) : double[] |
Encode the neural network to an array of doubles. This includes the network weights. To read this into a neural network, use the decodeNetwork method.
|
|
FlatNetwork ( ) : System |
Default constructor.
|
|
FlatNetwork ( |
Create a flat network from an array of layers.
|
|
FlatNetwork ( int input, int hidden1, int hidden2, int output, bool tanh ) : System |
Construct a flat neural network.
|
|
HasSameActivationFunction ( ) : |
Neural networks with only one type of activation function offer certain optimization options. This method determines if only a single activation function is used.
|
|
Init ( |
Construct a flat network.
|
|
Randomize ( ) : void |
Perform a simple randomization of the weights of the neural network between -1 and 1.
|
|
Randomize ( double hi, double lo ) : void |
Perform a simple randomization of the weights of the neural network between the specified hi and lo.
|
Method | Description | |
---|---|---|
ComputeLayer ( int currentLayer ) : void |
Calculate a layer.
|
public CalculateError ( IMLDataSet data ) : double | ||
data | IMLDataSet | The training set. |
return | double |
public CloneFlatNetwork ( |
||
result | The network to copy into. | |
return | void |
public Compute ( double input, double output ) : void | ||
input | double | The input. |
output | double | Output will be placed here. |
return | void |
protected ComputeLayer ( int currentLayer ) : void | ||
currentLayer | int | The layer to calculate. |
return | void |
public DecodeNetwork ( double data ) : void | ||
data | double | The data to be decoded. |
return | void |
public FlatNetwork ( |
||
layers | The layers. | |
return | System |
public FlatNetwork ( int input, int hidden1, int hidden2, int output, bool tanh ) : System | ||
input | int | Neurons in the input layer. |
hidden1 | int | |
hidden2 | int | |
output | int | Neurons in the output layer. |
tanh | bool | True if this is a tanh activation, false for sigmoid. |
return | System |
public HasSameActivationFunction ( ) : |
||
return |
public Init ( |
||
layers | The layers of the network to create. | |
return | void |
public Randomize ( double hi, double lo ) : void | ||
hi | double | The network high. |
lo | double | The network low. |
return | void |