C# Class Encog.Neural.Networks.Structure.NetworkCODEC

This class will extract the "long term memory" of a neural network, that is the weights and bias values into an array. This array can be used to view the neural network as a linear array of doubles. These values can then be modified and copied back into the neural network. This is very useful for simulated annealing, as well as genetic algorithms.
ファイルを表示 Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
ArrayToNetwork ( double array, IMLMethod network ) : void

Use an array to populate the memory of the neural network.

Equals ( BasicNetwork network1, BasicNetwork network2 ) : bool

Determine if the two neural networks are equal. Uses exact precision required by Arrays.equals.

Equals ( BasicNetwork network1, BasicNetwork network2, int precision ) : bool

Determine if the two neural networks are equal.

NetworkSize ( IMLMethod network ) : int

Determine the network size.

NetworkToArray ( IMLMethod network ) : double[]

Convert to an array. This is used with some training algorithms that require that the "memory" of the neuron(the weight and bias values) be expressed as a linear array.

Method Details

ArrayToNetwork() public static method

Use an array to populate the memory of the neural network.
public static ArrayToNetwork ( double array, IMLMethod network ) : void
array double An array of doubles.
network IMLMethod The network to encode.
return void

Equals() public static method

Determine if the two neural networks are equal. Uses exact precision required by Arrays.equals.
public static Equals ( BasicNetwork network1, BasicNetwork network2 ) : bool
network1 BasicNetwork The first network.
network2 BasicNetwork The second network.
return bool

Equals() public static method

Determine if the two neural networks are equal.
public static Equals ( BasicNetwork network1, BasicNetwork network2, int precision ) : bool
network1 BasicNetwork The first network.
network2 BasicNetwork The second network.
precision int How many decimal places to check.
return bool

NetworkSize() public static method

Determine the network size.
public static NetworkSize ( IMLMethod network ) : int
network IMLMethod The network.
return int

NetworkToArray() public static method

Convert to an array. This is used with some training algorithms that require that the "memory" of the neuron(the weight and bias values) be expressed as a linear array.
public static NetworkToArray ( IMLMethod network ) : double[]
network IMLMethod The network to encode.
return double[]