INeuralNetwork.SetRowWidthEx

Syntax

SetRowWidthEx(newWidth: Integer; layerIndex: Integer): Integer;

Parameters

newWidth. Number of lines.

layerIndex. Layer index.

Description

The SetRowWidthEx method sets the number of lines in the specified layer of a Kohonen self-organizing map.

Comments

Indexation of the layers is continuous and starts with zero. The SetRowWidthEx method returns the current number of lines in the output layer of the map and is similar to the INeuralNetwork.SetRowWidth method.

Example

As an example, a function is given, which input has a Kohonen self-organizing map fed into (the Net parameter). To execute the example, add links to the NN system assembly.

Function m_SetRowEx(Net: NeuralNetwork): NeuralNetwork;
Var
    layerCount, i: Integer;
Begin
    layerCount := Net.GetNumberOfLayers;
    For i := 1 To layerCount - 1 Do
        If Net.GetRowWidthEx(i) = 1 Then
            Net.SetRowWidthEx(2, i);
        End If;
    End For;
    Return Net;
End Function m_SetRowEx;

After executing the example the number of lines is set for all map layers.

See also:

INeuralNetwork