C# 클래스 AForge.Neuro.Network

파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
inputsCount int
layers AForge.Neuro.Layer[]
layersCount int
output double[]

공개 메소드들

메소드 설명
Compute ( double input ) : double[]

Compute output vector of the network.

The actual network's output vecor is determined by layers, which comprise the layer - represents an output vector of the last layer of the network. The output vector is also stored in Output property.

The method may be called safely from multiple threads to compute network'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 network'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 network's output property.

Load ( System.Stream stream ) : Network

Load network from specified file.

Neural network is loaded from file using .NET serialization (binary formater is used).

Load ( string fileName ) : Network

Load network from specified file.

Neural network is loaded from file using .NET serialization (binary formater is used).

Randomize ( ) : void

Randomize layers of the network.

Randomizes network's layers by calling Layer.Randomize method of each layer.

Save ( System.Stream stream ) : void

Save network to specified file.

The neural network is saved using .NET serialization (binary formatter is used).

Save ( string fileName ) : void

Save network to specified file.

The neural network is saved using .NET serialization (binary formatter is used).

보호된 메소드들

메소드 설명
Network ( int inputsCount, int layersCount ) : System

Initializes a new instance of the Network class.

Protected constructor, which initializes inputsCount, layersCount and layers members.

메소드 상세

Compute() 공개 메소드

Compute output vector of the network.

The actual network's output vecor is determined by layers, which comprise the layer - represents an output vector of the last layer of the network. The output vector is also stored in Output property.

The method may be called safely from multiple threads to compute network'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 network'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 network's output property.

public Compute ( double input ) : double[]
input double Input vector.
리턴 double[]

Load() 공개 정적인 메소드

Load network from specified file.

Neural network is loaded from file using .NET serialization (binary formater is used).

public static Load ( System.Stream stream ) : Network
stream System.Stream Stream to load network from.
리턴 Network

Load() 공개 정적인 메소드

Load network from specified file.

Neural network is loaded from file using .NET serialization (binary formater is used).

public static Load ( string fileName ) : Network
fileName string File name to load network from.
리턴 Network

Network() 보호된 메소드

Initializes a new instance of the Network class.
Protected constructor, which initializes inputsCount, layersCount and layers members.
protected Network ( int inputsCount, int layersCount ) : System
inputsCount int Network's inputs count.
layersCount int Network's layers count.
리턴 System

Randomize() 공개 메소드

Randomize layers of the network.
Randomizes network's layers by calling Layer.Randomize method of each layer.
public Randomize ( ) : void
리턴 void

Save() 공개 메소드

Save network to specified file.

The neural network is saved using .NET serialization (binary formatter is used).

public Save ( System.Stream stream ) : void
stream System.Stream Stream to save network into.
리턴 void

Save() 공개 메소드

Save network to specified file.

The neural network is saved using .NET serialization (binary formatter is used).

public Save ( string fileName ) : void
fileName string File name to save network into.
리턴 void

프로퍼티 상세

inputsCount 보호되어 있는 프로퍼티

Network's inputs count.
protected int inputsCount
리턴 int

layers 보호되어 있는 프로퍼티

Network's layers.
protected Layer[],AForge.Neuro layers
리턴 AForge.Neuro.Layer[]

layersCount 보호되어 있는 프로퍼티

Network's layers count.
protected int layersCount
리턴 int

output 보호되어 있는 프로퍼티

Network's output vector.
protected double[] output
리턴 double[]