Click or drag to resize

BackpropagationTrainSample Method

Run a single iteration of the backpropagation.

Namespace:  RavingBots.MagicGestures.AI.Neural.Classic
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
private static float TrainSample(
	MultilayerPerceptron mlp,
	SampleData sample,
	float learningRate,
	float momentum
)

Parameters

mlp
Type: RavingBots.MagicGestures.AI.Neural.ClassicMultilayerPerceptron
The network being trained.
sample
Type: RavingBots.MagicGestures.AI.CommonSampleData
The sample being processed.
learningRate
Type: SystemSingle
The learning rate parameter.
momentum
Type: SystemSingle
The momentum parameter.

Return Value

Type: Single
The new mean error value.
See Also