SetSynapse(
synapseValue: Double;
layerIdx: Integer;
neuronIdx: Integer;
synapseIndex: Integer): Boolean;
SetSynapse(
synapseValue: double;
layerIdx: integer;
neuronIdx: integer;
synapseIndex: integer): boolean;
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.
The SetSynapse method sets the value of the specified synapse weight.
The method returns the execution result. Available values:
True. A new value of the synapse is successfully set.
False. An error occurred during method execution. Value of the synapse weight has not been changed.
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".
The method use is given in the example for INeuralNetwork.CreateNetworkEx.
See also: