C# 클래스 AForge.Neuro.Layer

Base neural layer class
This is a base neural layer class, which represents collection of neurons.
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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[]