C# 클래스 Encog.Engine.Opencl.Kernels.KernelNetworkTrain

An OpenCL kernel that is designed to calculate gradients and help train a neural network.
상속: EncogKernel
파일 보기 프로젝트 열기: encog/encog-silverlight-core 1 사용 예제들

공개 메소드들

메소드 설명
AssignWorkgroupSizes ( int trainingSize, int requestedGlobalSize ) : void

Assign the workgroup sizes based on the training set size.

Calculate ( int start, int size, bool learn, int iterations ) : void

Calculate one iteration over the specified range.

Compile ( String>.IDictionary options, OpenCLTrainingProfile profile, FlatNetwork network ) : void

Compile the kernel.

Init ( OpenCLTrainingProfile profile ) : void

Setup the kernel.

KernelNetworkTrain ( EncogCLDevice device, FlatNetwork flat, IEngineIndexableSet training, int tempDataSize ) : System

Construct a kernel to train the network.

Release ( ) : void

Release the kernel and all buffers.

메소드 상세

AssignWorkgroupSizes() 공개 메소드

Assign the workgroup sizes based on the training set size.
public AssignWorkgroupSizes ( int trainingSize, int requestedGlobalSize ) : void
trainingSize int The training set size.
requestedGlobalSize int The requested global size.
리턴 void

Calculate() 공개 메소드

Calculate one iteration over the specified range.
public Calculate ( int start, int size, bool learn, int iterations ) : void
start int The starting position to calculate for.
size int The ending position to calculate for.
learn bool True, if we should learn.
iterations int The number of iterations to execute.
리턴 void

Compile() 공개 메소드

Compile the kernel.
public Compile ( String>.IDictionary options, OpenCLTrainingProfile profile, FlatNetwork network ) : void
options String>.IDictionary The options.
profile Encog.Engine.Network.Train.Prop.OpenCLTrainingProfile The OpenCL training profile to use.
network Encog.Engine.Network.Flat.FlatNetwork The network to compile for.
리턴 void

Init() 공개 메소드

Setup the kernel.
public Init ( OpenCLTrainingProfile profile ) : void
profile Encog.Engine.Network.Train.Prop.OpenCLTrainingProfile
리턴 void

KernelNetworkTrain() 공개 메소드

Construct a kernel to train the network.
public KernelNetworkTrain ( EncogCLDevice device, FlatNetwork flat, IEngineIndexableSet training, int tempDataSize ) : System
device EncogCLDevice The OpenCL device to use.
flat Encog.Engine.Network.Flat.FlatNetwork The network to train.
training IEngineIndexableSet The training data.
tempDataSize int How much temp data.
리턴 System

Release() 공개 메소드

Release the kernel and all buffers.
public Release ( ) : void
리턴 void