Initializes a new instance of the ActivationLayer class.

Namespace:  AForge.Neuro
Assembly:  AForge.Neuro (in AForge.Neuro.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public ActivationLayer(
	int neuronsCount,
	int inputsCount,
	IActivationFunction function
)

Parameters

neuronsCount
Type: System..::.Int32
Layer's neurons count.
inputsCount
Type: System..::.Int32
Layer's inputs count.
function
Type: AForge.Neuro..::.IActivationFunction
Activation function of neurons of the layer.

Remarks

The new layer is randomized (see Randomize()()() method) after it is created.

See Also