C# Класс Encog.Neural.Networks.Layers.ContextLayer

Наследование: BasicLayer, IContextClearable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

ClearContext() публичный Метод

Reset the context values back to zero.
public ClearContext ( ) : void
Результат void

ContextLayer() публичный Метод

Default constructor, mainly so the workbench can easily create a default layer.
public ContextLayer ( ) : System
Результат System

ContextLayer() публичный Метод

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.
Результат System

ContextLayer() публичный Метод

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.
Результат System

CreatePersistor() публичный Метод

Create a persistor for this layer.
public CreatePersistor ( ) : IPersistor
Результат IPersistor

Process() публичный Метод

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.
Результат void

Recur() публичный Метод

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
Результат INeuralData