C# Класс AForge.Neuro.Layer

Base neural layer class
This is a base neural layer class, which represents collection of neurons.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
inputsCount int
neurons AForge.Neuro.Neuron[]
neuronsCount int
output double[]

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

Метод Описание
Compute ( double input ) : double[]

Compute output vector of the layer.

The actual layer's output vector is determined by neurons, which comprise the layer - consists of output values of layer's neurons. The output vector is also stored in Output property.

The method may be called safely from multiple threads to compute layer's output value for the specified input values. However, the value of Output property in multi-threaded environment is not predictable, since it may hold layer's output computed from any of the caller threads. Multi-threaded access to the method is useful in those cases when it is required to improve performance by utilizing several threads and the computation is based on the immediate return value of the method, but not on layer's output property.

Randomize ( ) : void

Randomize neurons of the layer.

Randomizes layer's neurons by calling Neuron.Randomize method of each neuron.

Защищенные методы

Метод Описание
Layer ( int neuronsCount, int inputsCount ) : System

Initializes a new instance of the Layer class.

Protected contructor, which initializes inputsCount, neuronsCount and neurons members.

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

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

Compute output vector of the layer.

The actual layer's output vector is determined by neurons, which comprise the layer - consists of output values of layer's neurons. The output vector is also stored in Output property.

The method may be called safely from multiple threads to compute layer's output value for the specified input values. However, the value of Output property in multi-threaded environment is not predictable, since it may hold layer's output computed from any of the caller threads. Multi-threaded access to the method is useful in those cases when it is required to improve performance by utilizing several threads and the computation is based on the immediate return value of the method, but not on layer's output property.

public Compute ( double input ) : double[]
input double Input vector.
Результат double[]

Layer() защищенный Метод

Initializes a new instance of the Layer class.
Protected contructor, which initializes inputsCount, neuronsCount and neurons members.
protected Layer ( int neuronsCount, int inputsCount ) : System
neuronsCount int Layer's neurons count.
inputsCount int Layer's inputs count.
Результат System

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

Randomize neurons of the layer.
Randomizes layer's neurons by calling Neuron.Randomize method of each neuron.
public Randomize ( ) : void
Результат void

Описание свойств

inputsCount защищенное свойство

Layer's inputs count.
protected int inputsCount
Результат int

neurons защищенное свойство

Layer's neurons.
protected Neuron[],AForge.Neuro neurons
Результат AForge.Neuro.Neuron[]

neuronsCount защищенное свойство

Layer's neurons count.
protected int neuronsCount
Результат int

output защищенное свойство

Layer's output vector.
protected double[] output
Результат double[]