Initializes a new instance of the ActivationNetwork class.

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

Syntax

C#
public ActivationNetwork(
	IActivationFunction function,
	int inputsCount,
	params int[] neuronsCount
)

Parameters

function
Type: AForge.Neuro..::.IActivationFunction
Activation function of neurons of the network.
inputsCount
Type: System..::.Int32
Network's inputs count.
neuronsCount
Type: array< System..::.Int32 >[]()[]
Array, which specifies the amount of neurons in each layer of the neural network.

Remarks

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

See Also