Constructor
new Connection(source, target, weight)
Parameters:
Name | Type | Description |
---|---|---|
source |
Neuron | The Neuron that will send its output to the
|
target |
Neuron | The Neuron that will get its input from the
|
weight |
number | The strength of the connection. Meaning, what
ratio of the |
Members
source :Neuron
A reference to the Neuron at the start of this Connection.
A reference to the Neuron at the start of this Connection.
Type:
target :Neuron
A reference to the Neuron at the end of this Connection.
A reference to the Neuron at the end of this Connection.
Type:
weight :number
The weight is used as a multiplier for two purposes.
The weight is used as a multiplier for two purposes. First, for
activation, when transferring the output of the source
Neuron to
the input of the target
Neuron. Second, during training, calculating
the total error delta.
Type:
- number
Methods
accumulate()
Calculate and accumulate gradient
.
Calculate and accumulate gradient
. Does not update weight
.
update()
Update weight
and reset accumulated gradient
.
Update weight
and reset accumulated gradient
.