Click or drag to resize
Accord.NET (logo)

ActivationLayer Constructor

Initializes a new instance of the ActivationLayer class.

Namespace:  Accord.Neuro
Assembly:  Accord.Neuro (in Accord.Neuro.dll) Version: 3.8.0
Syntax
public ActivationLayer(
	int neuronsCount,
	int inputsCount,
	IActivationFunction function
)
Request Example View Source

Parameters

neuronsCount
Type: SystemInt32
Layer's neurons count.
inputsCount
Type: SystemInt32
Layer's inputs count.
function
Type: Accord.NeuroIActivationFunction
Activation function of neurons of the layer.
Remarks
The new layer is randomized (see Randomize method) after it is created.
See Also