C# Class Encog.Engine.Opencl.Kernels.KernelNetworkTrain

An OpenCL kernel that is designed to calculate gradients and help train a neural network.
Inheritance: EncogKernel
Afficher le fichier Open project: encog/encog-silverlight-core Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

AssignWorkgroupSizes() public méthode

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.
Résultat void

Calculate() public méthode

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.
Résultat void

Compile() public méthode

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.
Résultat void

Init() public méthode

Setup the kernel.
public Init ( OpenCLTrainingProfile profile ) : void
profile Encog.Engine.Network.Train.Prop.OpenCLTrainingProfile
Résultat void

KernelNetworkTrain() public méthode

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.
Résultat System

Release() public méthode

Release the kernel and all buffers.
public Release ( ) : void
Résultat void