Click or drag to resize

LayerCreate Method

Construct a set of layers usable as a network.

Namespace:  RavingBots.MagicGestures.AI.Neural.Classic
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static Layer[] Create(
	int inputCount,
	int outputCount,
	int[] hiddenLayers,
	ActivationFuncType funcType
)

Parameters

inputCount
Type: SystemInt32
The number of inputs.
outputCount
Type: SystemInt32
The number of outputs.
hiddenLayers
Type: SystemInt32
The specification of the hidden layers. See HiddenLayers.
funcType
Type: RavingBots.MagicGestures.AI.Neural.ClassicActivationFuncType
The activation function to use for each neuron.

Return Value

Type: Layer
Remarks
Because the inputs are chained (Process(Layer, Single)), the middle layers (called "hidden layers") must have a specific number of inputs and outputs. This method makes it easy to create an entire set of layers that can be used together as a network.
See Also