Click or drag to resize

GestureLearnerCreateSamples Method

Convert a list of spells to a list of training samples.

Namespace:  RavingBots.MagicGestures.AI
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
private static SampleData[] CreateSamples(
	SpellData[] spells,
	GesturePreprocessor preprocessor
)

Parameters

spells
Type: RavingBots.MagicGestures.GameSpellData
preprocessor
Type: RavingBots.MagicGestures.AIGesturePreprocessor

Return Value

Type: SampleData
A training set that can be used with RunAsyncTraining(MultilayerPerceptron, SampleData, BackpropagationSettings).
Remarks

This method preprocesses all configured spells into a form usable by the neural network training algorithm.

Every sample has N inputs and M outputs, where N is the number of the grid cells (see GetInput(GestureData)) and M is the number of items in the spells array. The neural network will be created with the same number of inputs and outputs.

See Also