C# Class Encog.Neural.Networks.Layers.ContextLayer

Inheritance: BasicLayer, IContextClearable
Exibir arquivo Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
ClearContext ( ) : void

Reset the context values back to zero.

ContextLayer ( ) : System

Default constructor, mainly so the workbench can easily create a default layer.

ContextLayer ( IActivationFunction thresholdFunction, bool hasThreshold, int neuronCount ) : System

Construct a context layer with the parameters specified.

ContextLayer ( int neuronCount ) : System

Construct a default context layer that has the TANH activation function and the specified number of neurons. Use threshold values.

CreatePersistor ( ) : IPersistor

Create a persistor for this layer.

Process ( INeuralData pattern ) : void

Called to process input from the previous layer. Simply store the output in the context.

Recur ( ) : INeuralData

Called to get the output from this layer when called in a recurrent manor. Simply return the context that was kept from the last iteration.

Method Details

ClearContext() public method

Reset the context values back to zero.
public ClearContext ( ) : void
return void

ContextLayer() public method

Default constructor, mainly so the workbench can easily create a default layer.
public ContextLayer ( ) : System
return System

ContextLayer() public method

Construct a context layer with the parameters specified.
public ContextLayer ( IActivationFunction thresholdFunction, bool hasThreshold, int neuronCount ) : System
thresholdFunction IActivationFunction The threshold function to use.
hasThreshold bool Does this layer have thresholds?
neuronCount int The neuron count to use.
return System

ContextLayer() public method

Construct a default context layer that has the TANH activation function and the specified number of neurons. Use threshold values.
public ContextLayer ( int neuronCount ) : System
neuronCount int The number of neurons on this layer.
return System

CreatePersistor() public method

Create a persistor for this layer.
public CreatePersistor ( ) : IPersistor
return IPersistor

Process() public method

Called to process input from the previous layer. Simply store the output in the context.
public Process ( INeuralData pattern ) : void
pattern INeuralData The pattern to store in the context.
return void

Recur() public method

Called to get the output from this layer when called in a recurrent manor. Simply return the context that was kept from the last iteration.
public Recur ( ) : INeuralData
return INeuralData