Set new activation function for all neurons of the layer.

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

Syntax

C#
public void SetActivationFunction(
	IActivationFunction function
)

Parameters

function
Type: AForge.Neuro..::.IActivationFunction
Activation function to set.

Remarks

The methods sets new activation function for each neuron by setting their ActivationFunction property.

See Also