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 |
Properties
|
Properties:
Name | Type | Default | Description |
---|---|---|---|
from |
Node | Connection origin node (neuron) |
|
to |
Node | Connection destination node (neuron) |
|
weight |
number |
random
|
Weight of the connection |
gain |
number |
1
|
Used for gating, gets multiplied with weight |
gater |
Node |
null
|
The node gating this connection |
elegibility |
number |
0
|
|
xtrace_nodes |
Array.<Node> | ||
xtrace_values |
Array.<number> | ||
delta_weights |
Array.<number> | ||
delta_weights_previous |
number |
0
|
Tracks momentum |
delta_weights_total |
number |
0
|
Tracks momentum - for batch training |
- 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
Returns the connection as a JSON
Returns:
Returns connection as a JSON
- Source: