GestureLearnerCreateSamples Method |
Namespace: RavingBots.MagicGestures.AI
private static SampleData[] CreateSamples( SpellData[] spells, GesturePreprocessor preprocessor )
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.