INeuralNetwork.SetSynapse

Fore Syntax

SetSynapse(

synapseValue: Double;

layerIdx: Integer;

neuronIdx: Integer;

synapseIndex: Integer): Boolean;

Fore.NET Syntax

SetSynapse(

synapseValue: double;

layerIdx: integer;

neuronIdx: integer;

synapseIndex: integer): boolean;

Parameters

synapseValue. A new value of synapse weight.

layerIdx. Index of the network layer.

neuronIdx. Index of the neuron in the layer.

synapseIndex. Index of the synapse in the neuron.

Description

The SetSynapse method sets the value of the specified synapse weight.

Comments

The method returns the execution result. Available values:

Use the INeuralNetwork.GetSynapse method to get the current synapse weight value. If the weight is set to zero, the synapse does not work.

Indexation of the layers, neurons, synapses is continuous and starts with zero. Maximum value of synapseIndex matches the number of neuron synapses. A synapse with maximum index is a "shifted input", and its weight is set to zero by default. The SetSynapse method can be used to change value of the weight for "shifted input".

Fore and Fore.NET Examples

The method use is given in the example for INeuralNetwork.CreateNetworkEx.

See also:

INeuralNetwork