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

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

Public Methods

Method 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 method

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.
return void

Calculate() public method

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.
return void

Compile() public method

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.
return void

Init() public method

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

KernelNetworkTrain() public method

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.
return System

Release() public method

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