INeuralNetwork.SetSigmoidFuncsEx

Syntax

SetSigmoidFuncsEx(NeuronSigmoidFuncsType: Integer; layerIndex: Integer);

Parameters

NeuronSigmoidFuncsType. Type of the function of signal propagation in the network.

layerIndex. Index of the network layer.

Description

The SetSigmoidFuncs method sets the type of signal propagation in the network for the specified layer.

Comments

The range of network output values depends on the type of signal propagation. Available values of the NeuronSigmoidFuncsType parameter:

Indexation of layers is continuous and starts with zero.

Example

As an example, a function is given, which input has a neural network fed into (the Net parameter). To execute the example, add a link to the NN system assembly.

Function m_SetSigmoidFuncsEx(Net: NeuralNetwork): NeuralNetwork;
Var
    i, lCount: Integer;
Begin
    lCount := Net.GetNumberOfLayers;
    For i := 0 To lCount - 1 Do
        Net.SetSigmoidFuncsEx(2, i);
    End For;
    Return Net;
End Function m_SetSigmoidFuncsEx;

After executing the example the function of hyperbolic tangent is used for all the neurons in the network.

See also:

INeuralNetwork