INeuralNetwork.SetSigmoidFuncsEx

Fore Syntax

SetSigmoidFuncsEx(NeuronSigmoidFuncsType: Integer; layerIndex: Integer);

Fore.NET 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 parameter:

Indexation of layers is continuous and starts with zero.

Fore 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.

Fore.NET Example

As an example, a function is given, which input has a neural network fed into (the Net parameter).

Public Shared 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;

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

See also:

INeuralNetwork