메소드 | 설명 | |
---|---|---|
AddLayer ( ILayer layer ) : void |
Add a layer to the neural network. If there are no layers added this layer will become the input layer. This function automatically updates both the input and output layer references.
|
|
AddWeight ( int fromLayer, int fromNeuron, int toNeuron, double v ) : void |
Add to a weight.
|
|
BasicNetwork ( ) : System |
Construct an empty neural network.
|
|
CalculateError ( IMLDataSet data ) : double |
Calculate the error for this neural network.
|
|
CalculateNeuronCount ( ) : int |
Calculate the total number of neurons in the network across all layers.
|
|
Classify ( IMLData input ) : int | ||
ClearContext ( ) : void |
Clear any data from any context layers.
|
|
Clone ( ) : Object |
Return a clone of this neural network. Including structure, weights and bias values. This is a deep copy.
|
|
Compute ( IMLData input ) : IMLData |
Compute the output for a given input to the neural network.
|
|
Compute ( double input, double output ) : void |
Compute the output for this network.
|
|
DecodeFromArray ( double encoded ) : void | ||
DumpWeights ( ) : String | ||
EnableConnection ( int fromLayer, int fromNeuron, int toNeuron, bool enable ) : void |
Enable, or disable, a connection.
|
|
EncodeToArray ( double encoded ) : void | ||
EncodedArrayLength ( ) : int | ||
Equals ( |
Compare the two neural networks. For them to be equal they must be of the same structure, and have the same matrix values.
|
|
Equals ( |
Determine if this neural network is equal to another. Equal neural networks have the same weight matrix and bias values, within a specified precision.
|
|
GetActivation ( int layer ) : IActivationFunction |
Get the activation function for the specified layer.
|
|
GetHashCode ( ) : int |
Generate a hash code.
|
|
GetLayerBiasActivation ( int l ) : double |
Get the bias activation for the specified layer.
|
|
GetLayerNeuronCount ( int l ) : int |
Get the neuron count.
|
|
GetLayerOutput ( int layer, int neuronNumber ) : double |
Get the layer output for the specified neuron.
|
|
GetLayerTotalNeuronCount ( int l ) : int |
Get the total (including bias and context) neuron cont for a layer.
|
|
GetWeight ( int fromLayer, int fromNeuron, int toNeuron ) : double |
Get the weight between the two layers.
|
|
IsConnected ( int layer, int fromNeuron, int toNeuron ) : bool |
Determine if the specified connection is enabled.
|
|
IsLayerBiased ( int l ) : bool |
Determine if the specified layer is biased.
|
|
Reset ( ) : void |
Reset the weight matrix and the bias values. This will use a Nguyen-Widrow randomizer with a range between -1 and 1. If the network does not have an input, output or hidden layers, then Nguyen-Widrow cannot be used and a simple range randomize between -1 and 1 will be used.
|
|
Reset ( int seed ) : void |
Reset the weight matrix and the bias values. This will use a Nguyen-Widrow randomizer with a range between -1 and 1. If the network does not have an input, output or hidden layers, then Nguyen-Widrow cannot be used and a simple range randomize between -1 and 1 will be used. Use the specified seed.
|
|
SetLayerBiasActivation ( int l, double v ) : void |
Set the bias activation for the specified layer.
|
|
SetWeight ( int fromLayer, int fromNeuron, int toNeuron, double v ) : void |
Set the weight between the two specified neurons.
|
|
ToString ( ) : String |
|
|
UpdateProperties ( ) : void |
|
|
ValidateNeuron ( int targetLayer, int neuron ) : void |
Validate the the specified targetLayer and neuron are valid.
|
|
Winner ( IMLData input ) : int |
Determine the winner for the specified input. This is the number of the winning neuron.
|
public AddLayer ( ILayer layer ) : void | ||
layer | ILayer | The layer to be added to the network. |
리턴 | void |
public AddWeight ( int fromLayer, int fromNeuron, int toNeuron, double v ) : void | ||
fromLayer | int | The from layer. |
fromNeuron | int | The from neuron. |
toNeuron | int | The to neuron. |
v | double | The value to add. |
리턴 | void |
public CalculateError ( IMLDataSet data ) : double | ||
data | IMLDataSet | The training set. |
리턴 | double |
public Compute ( IMLData input ) : IMLData | ||
input | IMLData | The input to the neural network. |
리턴 | IMLData |
public Compute ( double input, double output ) : void | ||
input | double | The input. |
output | double | The output. |
리턴 | void |
public EnableConnection ( int fromLayer, int fromNeuron, int toNeuron, bool enable ) : void | ||
fromLayer | int | The layer that contains the from neuron. |
fromNeuron | int | The source neuron. |
toNeuron | int | The target connection. |
enable | bool | True to enable, false to disable. |
리턴 | void |
public Equals ( |
||
other | The other neural network. | |
리턴 | bool |
public Equals ( |
||
other | The other neural network. | |
precision | int | The number of decimal places to compare to. |
리턴 | bool |
public GetActivation ( int layer ) : IActivationFunction | ||
layer | int | The layer. |
리턴 | IActivationFunction |
public GetLayerBiasActivation ( int l ) : double | ||
l | int | The layer. |
리턴 | double |
public GetLayerOutput ( int layer, int neuronNumber ) : double | ||
layer | int | The layer. |
neuronNumber | int | The neuron number. |
리턴 | double |
public GetLayerTotalNeuronCount ( int l ) : int | ||
l | int | The layer. |
리턴 | int |
public GetWeight ( int fromLayer, int fromNeuron, int toNeuron ) : double | ||
fromLayer | int | The from layer. |
fromNeuron | int | The from neuron. |
toNeuron | int | The to neuron. |
리턴 | double |
public IsConnected ( int layer, int fromNeuron, int toNeuron ) : bool | ||
layer | int | The layer to check. |
fromNeuron | int | The source neuron. |
toNeuron | int | THe target neuron. |
리턴 | bool |
public SetLayerBiasActivation ( int l, double v ) : void | ||
l | int | The layer to use. |
v | double | |
리턴 | void |
public SetWeight ( int fromLayer, int fromNeuron, int toNeuron, double v ) : void | ||
fromLayer | int | The from layer. |
fromNeuron | int | The from neuron. |
toNeuron | int | The to neuron. |
v | double | The to value. |
리턴 | void |
public ValidateNeuron ( int targetLayer, int neuron ) : void | ||
targetLayer | int | The target layer. |
neuron | int | The target neuron. |
리턴 | void |
public Winner ( IMLData input ) : int | ||
input | IMLData | The input patter to present to the neural network. |
리턴 | int |