new Connection (from, to, weightopt, optionsopt) open an issue
A connection instance describes the connection between two nodes. If you're looking for connections between Groups please see Connection Methods
Parameters:
Name | Type | Default | Description |
---|---|---|---|
from |
Node | Connection origin node (neuron) |
|
to |
Node | Connection destination node (neuron) |
|
weight |
number <optional> |
random
|
Weight of the connection |
options |
Object <optional> |
Properties:
Name | Type | Default | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
from |
Node | Connection origin node (neuron) |
||||||||||
to |
Node | Connection destination node (neuron) |
||||||||||
weight |
number |
random
|
Weight of the connection |
|||||||||
gater |
Node |
null
|
The node gating this connection |
|||||||||
gain |
number |
1
|
Used for gating, gets multiplied with weight |
|||||||||
elegibility |
number |
0
|
||||||||||
previousDeltaWeight |
number |
0
|
Used for tracking momentum, basically a log of previous training adjustments |
|||||||||
totalDeltaWeight |
number |
0
|
Used for tracking momentum, a log of previous training adjustments for batch training |
|||||||||
xtrace |
object |
Properties
|
- Source:
- See:
Methods
(static) innovationID (a, b) → {number} open an issue
Returns an innovation ID
Parameters:
Name | Type | Description |
---|---|---|
a |
number | A natural number, which is an integer greater than or equal to zero |
b |
number | A natural number, which is an integer greater than or equal to zero |
Returns:
- An Integer that uniquely represents a pair of Integers
(static) toJSON () → {object} open an issue
Converts the connection to a json object
Returns:
A connection represented as a JSON object
- Source: