Click or drag to resize

GestureLearnerStartTraining Method

Start the training process.

Namespace:  RavingBots.MagicGestures.AI
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public bool StartTraining(
	SpellData[] spells
)

Parameters

spells
Type: RavingBots.MagicGestures.GameSpellData
The spells to teach the network.

Return Value

Type: Boolean
Whether the settings were valid and the training was started.
Remarks
Important note Important
The training process is asynchronous. This method will not block until the training is complete.

This method creates a new neural network and trains it using the _backpropagation object. The network instance is assigned to _trainedMLP and is not used for recognition until the training completes.

Note that spells must contain all known spells, not just the most recently configured one, because a fresh network is being created every time this method is called.

See Also