@reicek/neataptic-ts 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/agents/boundary-mapper.agent.md +29 -0
- package/.github/agents/docs-scout.agent.md +29 -0
- package/.github/agents/plan-scout.agent.md +29 -0
- package/.github/agents/solid-split.agent.md +138 -0
- package/.github/copilot-instructions.md +103 -0
- package/package.json +6 -3
- package/plans/ES2023 migration +13 -8
- package/plans/Evolution_Training_Interoperability_Contracts.md +1 -1
- package/plans/Interactive_Examples_and_Learning_Path.md +10 -2
- package/plans/Memory_Optimization.md +3 -3
- package/plans/README.md +63 -0
- package/plans/Roadmap.md +15 -3
- package/plans/asciiMaze_SOLID_split.done.md +130 -0
- package/plans/flappy_bird_SOLID_split.done.md +67 -0
- package/scripts/assets/theme.css +221 -34
- package/scripts/copy-examples.mjs +9 -5
- package/scripts/export-onnx.mjs +3 -3
- package/scripts/generate-bench-tables.mjs +10 -10
- package/scripts/generate-bench-tables.ts +10 -10
- package/scripts/generate-docs.ts +1415 -449
- package/scripts/render-docs-html.ts +15 -8
- package/src/README.md +101 -223
- package/src/architecture/README.md +57 -185
- package/src/architecture/layer/README.md +38 -38
- package/src/architecture/network/README.md +33 -31
- package/src/architecture/network/activate/README.md +77 -77
- package/src/architecture/network/connect/README.md +15 -13
- package/src/architecture/network/deterministic/README.md +7 -7
- package/src/architecture/network/evolve/README.md +44 -44
- package/src/architecture/network/gating/README.md +20 -20
- package/src/architecture/network/genetic/README.md +51 -51
- package/src/architecture/network/mutate/README.md +97 -97
- package/src/architecture/network/onnx/README.md +264 -264
- package/src/architecture/network/prune/README.md +39 -39
- package/src/architecture/network/remove/README.md +26 -26
- package/src/architecture/network/serialize/README.md +56 -56
- package/src/architecture/network/slab/README.md +61 -61
- package/src/architecture/network/standalone/README.md +24 -24
- package/src/architecture/network/stats/README.md +9 -9
- package/src/architecture/network/topology/README.md +46 -46
- package/src/architecture/network/training/README.md +21 -21
- package/src/methods/README.md +9 -87
- package/src/multithreading/README.md +8 -77
- package/src/multithreading/workers/README.md +2 -2
- package/src/multithreading/workers/browser/README.md +0 -6
- package/src/multithreading/workers/node/README.md +0 -3
- package/src/neat/README.md +562 -568
- package/src/utils/README.md +18 -18
- package/test/examples/asciiMaze/README.md +59 -59
- package/test/examples/asciiMaze/asciiMaze.e2e.test.ts +14 -9
- package/test/examples/asciiMaze/browser-entry/README.md +196 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.abort.services.ts +95 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.constants.ts +23 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.curriculum.services.ts +115 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.globals.services.ts +106 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.host.services.ts +157 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.services.ts +14 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.ts +129 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.types.ts +120 -0
- package/test/examples/asciiMaze/browser-entry/browser-entry.utils.ts +98 -0
- package/test/examples/asciiMaze/browser-entry.ts +10 -576
- package/test/examples/asciiMaze/dashboardManager/README.md +276 -0
- package/test/examples/asciiMaze/dashboardManager/archive/README.md +16 -0
- package/test/examples/asciiMaze/dashboardManager/archive/dashboardManager.archive.services.ts +267 -0
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.constants.ts +35 -0
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.services.ts +103 -0
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.ts +181 -0
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.types.ts +267 -0
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.utils.ts +254 -0
- package/test/examples/asciiMaze/dashboardManager/live/README.md +14 -0
- package/test/examples/asciiMaze/dashboardManager/live/dashboardManager.live.services.ts +264 -0
- package/test/examples/asciiMaze/dashboardManager/telemetry/README.md +47 -0
- package/test/examples/asciiMaze/dashboardManager/telemetry/dashboardManager.telemetry.services.ts +513 -0
- package/test/examples/asciiMaze/dashboardManager.ts +13 -2335
- package/test/examples/asciiMaze/evolutionEngine/README.md +1058 -0
- package/test/examples/asciiMaze/evolutionEngine/curriculumPhase.ts +90 -0
- package/test/examples/asciiMaze/evolutionEngine/engineState.constants.ts +36 -0
- package/test/examples/asciiMaze/evolutionEngine/engineState.ts +58 -513
- package/test/examples/asciiMaze/evolutionEngine/engineState.types.ts +212 -0
- package/test/examples/asciiMaze/evolutionEngine/engineState.utils.ts +301 -0
- package/test/examples/asciiMaze/evolutionEngine/evolutionEngine.types.ts +445 -0
- package/test/examples/asciiMaze/evolutionEngine/evolutionLoop.ts +81 -50
- package/test/examples/asciiMaze/evolutionEngine/optionsAndSetup.ts +2 -4
- package/test/examples/asciiMaze/evolutionEngine/populationDynamics.ts +17 -33
- package/test/examples/asciiMaze/evolutionEngine/populationPruning.ts +1 -1
- package/test/examples/asciiMaze/evolutionEngine/rngAndTiming.ts +1 -2
- package/test/examples/asciiMaze/evolutionEngine/sampling.ts +1 -1
- package/test/examples/asciiMaze/evolutionEngine/scratchPools.ts +2 -5
- package/test/examples/asciiMaze/evolutionEngine/setupHelpers.ts +30 -37
- package/test/examples/asciiMaze/evolutionEngine/telemetryMetrics.ts +16 -58
- package/test/examples/asciiMaze/evolutionEngine/trainingWarmStart.ts +2 -2
- package/test/examples/asciiMaze/evolutionEngine.ts +55 -55
- package/test/examples/asciiMaze/fitness.ts +2 -2
- package/test/examples/asciiMaze/fitness.types.ts +65 -0
- package/test/examples/asciiMaze/interfaces.ts +64 -1352
- package/test/examples/asciiMaze/mazeMovement/README.md +356 -0
- package/test/examples/asciiMaze/mazeMovement/finalization/README.md +49 -0
- package/test/examples/asciiMaze/mazeMovement/finalization/mazeMovement.finalization.ts +138 -0
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.constants.ts +101 -0
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.services.ts +230 -0
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.ts +299 -0
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.types.ts +185 -0
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.utils.ts +153 -0
- package/test/examples/asciiMaze/mazeMovement/policy/README.md +91 -0
- package/test/examples/asciiMaze/mazeMovement/policy/mazeMovement.policy.ts +467 -0
- package/test/examples/asciiMaze/mazeMovement/runtime/README.md +95 -0
- package/test/examples/asciiMaze/mazeMovement/runtime/mazeMovement.runtime.ts +354 -0
- package/test/examples/asciiMaze/mazeMovement/shaping/README.md +124 -0
- package/test/examples/asciiMaze/mazeMovement/shaping/mazeMovement.shaping.ts +459 -0
- package/test/examples/asciiMaze/mazeMovement.ts +12 -2978
- package/test/examples/flappy_bird/Trace-20260309T191949.json +24124 -0
- package/test/examples/flappy_bird/browser-entry/README.md +1129 -0
- package/test/examples/flappy_bird/browser-entry/browser-entry.host.utils.ts +4 -324
- package/test/examples/flappy_bird/browser-entry/browser-entry.network-view.utils.ts +6 -399
- package/test/examples/flappy_bird/browser-entry/browser-entry.playback.utils.ts +1 -717
- package/test/examples/flappy_bird/browser-entry/browser-entry.spawn.utils.ts +11 -31
- package/test/examples/flappy_bird/browser-entry/browser-entry.visualization.utils.ts +15 -893
- package/test/examples/flappy_bird/browser-entry/host/README.md +307 -0
- package/test/examples/flappy_bird/browser-entry/host/host.resize.service.ts +1 -295
- package/test/examples/flappy_bird/browser-entry/host/host.ts +562 -6
- package/test/examples/flappy_bird/browser-entry/host/resize/README.md +274 -0
- package/test/examples/flappy_bird/browser-entry/host/resize/host.resize.service.constants.ts +31 -0
- package/test/examples/flappy_bird/browser-entry/host/resize/host.resize.service.services.ts +360 -0
- package/test/examples/flappy_bird/browser-entry/host/resize/host.resize.service.ts +117 -0
- package/test/examples/flappy_bird/browser-entry/host/resize/host.resize.service.types.ts +63 -0
- package/test/examples/flappy_bird/browser-entry/host/resize/host.resize.service.utils.ts +250 -0
- package/test/examples/flappy_bird/browser-entry/network-view/README.md +399 -0
- package/test/examples/flappy_bird/browser-entry/network-view/network-view.topology.utils.ts +255 -0
- package/test/examples/flappy_bird/browser-entry/network-view/network-view.ts +802 -7
- package/test/examples/flappy_bird/browser-entry/playback/README.md +684 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/README.md +277 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/README.md +770 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.cache.services.ts +178 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.constants.ts +107 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.geometry.utils.ts +518 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.math.utils.ts +117 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.pulse.utils.ts +233 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.services.ts +211 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.ts +48 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.types.ts +212 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/ground-grid/playback.background.ground-grid.utils.ts +81 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.cache.services.ts +96 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.constants.ts +62 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.services.ts +244 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.ts +53 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.types.ts +68 -0
- package/test/examples/flappy_bird/browser-entry/playback/background/playback.background.utils.ts +100 -0
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/README.md +310 -0
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.service.ts +92 -0
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.services.ts +272 -0
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.types.ts +39 -0
- package/test/examples/flappy_bird/browser-entry/playback/frame-render/playback.frame-render.utils.ts +493 -0
- package/test/examples/flappy_bird/browser-entry/playback/playback.constants.ts +1 -1
- package/test/examples/flappy_bird/browser-entry/playback/playback.frame-render.service.ts +4 -0
- package/test/examples/flappy_bird/browser-entry/playback/playback.snapshot.utils.ts +44 -0
- package/test/examples/flappy_bird/browser-entry/playback/playback.starfield.service.ts +39 -122
- package/test/examples/flappy_bird/browser-entry/playback/playback.starfield.services.ts +272 -0
- package/test/examples/flappy_bird/browser-entry/playback/playback.starfield.types.ts +62 -0
- package/test/examples/flappy_bird/browser-entry/playback/playback.starfield.utils.ts +11 -4
- package/test/examples/flappy_bird/browser-entry/playback/playback.ts +409 -8
- package/test/examples/flappy_bird/browser-entry/playback/playback.types.ts +4 -12
- package/test/examples/flappy_bird/browser-entry/runtime/README.md +235 -0
- package/test/examples/flappy_bird/browser-entry/runtime/runtime.evolution-launch.service.ts +45 -0
- package/test/examples/flappy_bird/browser-entry/runtime/runtime.lifecycle.service.ts +81 -0
- package/test/examples/flappy_bird/browser-entry/runtime/runtime.startup.service.ts +74 -0
- package/test/examples/flappy_bird/browser-entry/runtime/runtime.ts +31 -121
- package/test/examples/flappy_bird/browser-entry/runtime/runtime.types.ts +36 -0
- package/test/examples/flappy_bird/browser-entry/visualization/README.md +557 -0
- package/test/examples/flappy_bird/browser-entry/visualization/visualization.constants.ts +110 -0
- package/test/examples/flappy_bird/browser-entry/visualization/visualization.draw.service.ts +957 -19
- package/test/examples/flappy_bird/browser-entry/visualization/visualization.legend.utils.ts +138 -3
- package/test/examples/flappy_bird/browser-entry/visualization/visualization.topology.utils.ts +3 -27
- package/test/examples/flappy_bird/browser-entry/visualization/visualization.ts +1 -23
- package/test/examples/flappy_bird/browser-entry/worker-channel/README.md +156 -0
- package/test/examples/flappy_bird/constants/README.md +1179 -0
- package/test/examples/flappy_bird/constants/constants.network-view.ts +24 -0
- package/test/examples/flappy_bird/constants/constants.palette.ts +7 -0
- package/test/examples/flappy_bird/constants/constants.starfield.ts +78 -3
- package/test/examples/flappy_bird/environment/README.md +143 -0
- package/test/examples/flappy_bird/environment/environment.observation.utils.ts +1 -19
- package/test/examples/flappy_bird/environment/environment.step.service.ts +3 -66
- package/test/examples/flappy_bird/evaluation/README.md +130 -0
- package/test/examples/flappy_bird/evaluation/evaluation.fitness.utils.ts +1 -1
- package/test/examples/flappy_bird/evaluation/evaluation.rollout.service.ts +5 -375
- package/test/examples/flappy_bird/evaluation/rollout/README.md +291 -0
- package/test/examples/flappy_bird/evaluation/rollout/evaluation.rollout.constants.ts +30 -0
- package/test/examples/flappy_bird/evaluation/rollout/evaluation.rollout.service.ts +58 -0
- package/test/examples/flappy_bird/evaluation/rollout/evaluation.rollout.services.ts +310 -0
- package/test/examples/flappy_bird/evaluation/rollout/evaluation.rollout.types.ts +56 -0
- package/test/examples/flappy_bird/evaluation/rollout/evaluation.rollout.utils.ts +368 -0
- package/test/examples/flappy_bird/flappy-evolution-worker/README.md +618 -0
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.playback.service.ts +7 -7
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.simulation.frame.service.ts +364 -0
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.simulation.types.ts +14 -0
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.simulation.utils.ts +4 -201
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.ts +184 -345
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.warm-start.service.ts +291 -0
- package/test/examples/flappy_bird/flappy.simulation.shared.utils.ts +5 -0
- package/test/examples/flappy_bird/simulation-shared/README.md +417 -0
- package/test/examples/flappy_bird/simulation-shared/observation/README.md +183 -0
- package/test/examples/flappy_bird/simulation-shared/observation/observation.features.utils.ts +301 -0
- package/test/examples/flappy_bird/simulation-shared/observation/observation.ts +9 -0
- package/test/examples/flappy_bird/simulation-shared/observation/observation.vector.utils.ts +59 -0
- package/test/examples/flappy_bird/simulation-shared/simulation-shared.observation.utils.ts +5 -403
- package/test/examples/flappy_bird/simulation-shared/simulation-shared.spawn.utils.ts +20 -6
- package/test/examples/flappy_bird/{evaluation/evaluation.statistics.utils.ts → simulation-shared/simulation-shared.statistics.utils.ts} +23 -8
- package/test/examples/flappy_bird/trainer/README.md +563 -0
- package/test/examples/flappy_bird/trainer/evaluation/README.md +199 -0
- package/test/examples/flappy_bird/trainer/evaluation/trainer.evaluation.service.constants.ts +9 -0
- package/test/examples/flappy_bird/trainer/evaluation/trainer.evaluation.service.services.ts +73 -0
- package/test/examples/flappy_bird/trainer/evaluation/trainer.evaluation.service.ts +165 -0
- package/test/examples/flappy_bird/trainer/evaluation/trainer.evaluation.service.types.ts +25 -0
- package/test/examples/flappy_bird/trainer/evaluation/trainer.evaluation.service.utils.ts +161 -0
- package/test/examples/flappy_bird/trainer/trainer.evaluation.service.ts +13 -0
- package/test/examples/flappy_bird/trainer/trainer.report.service.services.ts +181 -0
- package/test/examples/flappy_bird/trainer/trainer.report.service.ts +126 -0
- package/test/examples/flappy_bird/trainer/trainer.selection.utils.ts +89 -0
- package/test/examples/flappy_bird/trainer/trainer.ts +11 -553
- package/test/examples/flappy_bird/browser-entry/browser-entry.utils.ts +0 -12
- package/test/examples/flappy_bird/environment/environment.ts +0 -7
- package/test/examples/flappy_bird/evaluation/evaluation.ts +0 -7
- package/test/examples/flappy_bird/simulation-shared/simulation-shared.ts +0 -15
- package/test/examples/flappy_bird/trainer/trainer.statistics.utils.ts +0 -78
|
@@ -26,7 +26,7 @@ Mutable gater collection retained while removing a hidden node.
|
|
|
26
26
|
|
|
27
27
|
### gate
|
|
28
28
|
|
|
29
|
-
`(node: import("
|
|
29
|
+
`(node: import("src/architecture/node").default, connection: import("src/architecture/connection").default) => void`
|
|
30
30
|
|
|
31
31
|
Attach a gater node to a connection so that the connection's effective weight
|
|
32
32
|
becomes dynamically modulated by the gater's activation (see {@link Node.gate} for exact math).
|
|
@@ -44,7 +44,7 @@ Parameters:
|
|
|
44
44
|
|
|
45
45
|
### removeNode
|
|
46
46
|
|
|
47
|
-
`(node: import("
|
|
47
|
+
`(node: import("src/architecture/node").default) => void`
|
|
48
48
|
|
|
49
49
|
Remove a hidden node from the network while attempting to preserve functional connectivity.
|
|
50
50
|
|
|
@@ -76,7 +76,7 @@ Parameters:
|
|
|
76
76
|
|
|
77
77
|
### ungate
|
|
78
78
|
|
|
79
|
-
`(connection: import("
|
|
79
|
+
`(connection: import("src/architecture/connection").default) => void`
|
|
80
80
|
|
|
81
81
|
Remove gating from a connection, restoring its static weight contribution.
|
|
82
82
|
|
|
@@ -94,7 +94,7 @@ Parameters:
|
|
|
94
94
|
|
|
95
95
|
### assertGaterNodeBelongsToNetwork
|
|
96
96
|
|
|
97
|
-
`(network: import("
|
|
97
|
+
`(network: import("src/architecture/network").default, node: import("src/architecture/node").default) => void`
|
|
98
98
|
|
|
99
99
|
Validate that a candidate gater node belongs to the target network.
|
|
100
100
|
|
|
@@ -106,7 +106,7 @@ Returns: Nothing.
|
|
|
106
106
|
|
|
107
107
|
### attachGaterToConnection
|
|
108
108
|
|
|
109
|
-
`(network: import("
|
|
109
|
+
`(network: import("src/architecture/network").default, node: import("src/architecture/node").default, connection: import("src/architecture/connection").default) => void`
|
|
110
110
|
|
|
111
111
|
Attach a gater to a connection and track that connection in the network gate list.
|
|
112
112
|
|
|
@@ -119,7 +119,7 @@ Returns: Nothing.
|
|
|
119
119
|
|
|
120
120
|
### detachConnectionFromGater
|
|
121
121
|
|
|
122
|
-
`(connection: import("
|
|
122
|
+
`(connection: import("src/architecture/connection").default) => void`
|
|
123
123
|
|
|
124
124
|
Remove reverse gater bookkeeping from a connection's gater node.
|
|
125
125
|
|
|
@@ -130,7 +130,7 @@ Returns: Nothing.
|
|
|
130
130
|
|
|
131
131
|
### findGateIndex
|
|
132
132
|
|
|
133
|
-
`(network: import("
|
|
133
|
+
`(network: import("src/architecture/network").default, connection: import("src/architecture/connection").default) => number`
|
|
134
134
|
|
|
135
135
|
Find a connection position within the network global gates list.
|
|
136
136
|
|
|
@@ -142,7 +142,7 @@ Returns: Zero-based index in the gates list, or -1 when absent.
|
|
|
142
142
|
|
|
143
143
|
### isConnectionAlreadyGated
|
|
144
144
|
|
|
145
|
-
`(connection: import("
|
|
145
|
+
`(connection: import("src/architecture/connection").default) => boolean`
|
|
146
146
|
|
|
147
147
|
Determine whether a connection already has a gater node assigned.
|
|
148
148
|
|
|
@@ -153,7 +153,7 @@ Returns: True when a gater is already set; otherwise false.
|
|
|
153
153
|
|
|
154
154
|
### removeGateAtIndex
|
|
155
155
|
|
|
156
|
-
`(network: import("
|
|
156
|
+
`(network: import("src/architecture/network").default, gateIndex: number) => void`
|
|
157
157
|
|
|
158
158
|
Remove a gated connection from the network global gate list.
|
|
159
159
|
|
|
@@ -183,7 +183,7 @@ Returns: Nothing.
|
|
|
183
183
|
|
|
184
184
|
### assertNodeRemovableAndGetIndex
|
|
185
185
|
|
|
186
|
-
`(network: import("
|
|
186
|
+
`(network: import("src/architecture/network").default, node: import("src/architecture/node").default) => number`
|
|
187
187
|
|
|
188
188
|
Ensure a node can be removed and return its index in the network node list.
|
|
189
189
|
|
|
@@ -195,7 +195,7 @@ Returns: Index of the node in the network node list.
|
|
|
195
195
|
|
|
196
196
|
### createBridgingConnections
|
|
197
197
|
|
|
198
|
-
`(network: import("
|
|
198
|
+
`(network: import("src/architecture/network").default, predecessorNodes: import("src/architecture/network/gating/network.gating.utils.types").ConnectedNodeList, successorNodes: import("src/architecture/network/gating/network.gating.utils.types").ConnectedNodeList) => import("src/architecture/network/gating/network.gating.utils.types").BridgingConnectionList`
|
|
199
199
|
|
|
200
200
|
Create bridging connections from each predecessor to each successor when valid.
|
|
201
201
|
|
|
@@ -208,7 +208,7 @@ Returns: Newly created bridge connections.
|
|
|
208
208
|
|
|
209
209
|
### disconnectInboundConnections
|
|
210
210
|
|
|
211
|
-
`(network: import("
|
|
211
|
+
`(network: import("src/architecture/network").default, node: import("src/architecture/node").default, preservedGaters: import("src/architecture/network/gating/network.gating.utils.types").PreservedGaters, subNodeConfig: import("src/architecture/network/gating/network.gating.utils.types").NodeRemovalMutationConfig) => import("src/architecture/network/gating/network.gating.utils.types").ConnectedNodeList`
|
|
212
212
|
|
|
213
213
|
Disconnect all inbound connections for a node while collecting predecessors.
|
|
214
214
|
|
|
@@ -222,7 +222,7 @@ Returns: Predecessor nodes that previously projected into the removed node.
|
|
|
222
222
|
|
|
223
223
|
### disconnectNodeSelfLoop
|
|
224
224
|
|
|
225
|
-
`(network: import("
|
|
225
|
+
`(network: import("src/architecture/network").default, node: import("src/architecture/node").default) => void`
|
|
226
226
|
|
|
227
227
|
Disconnect a node self-loop before broader edge rewiring.
|
|
228
228
|
|
|
@@ -234,7 +234,7 @@ Returns: Nothing.
|
|
|
234
234
|
|
|
235
235
|
### disconnectOutboundConnections
|
|
236
236
|
|
|
237
|
-
`(network: import("
|
|
237
|
+
`(network: import("src/architecture/network").default, node: import("src/architecture/node").default, preservedGaters: import("src/architecture/network/gating/network.gating.utils.types").PreservedGaters, subNodeConfig: import("src/architecture/network/gating/network.gating.utils.types").NodeRemovalMutationConfig) => import("src/architecture/network/gating/network.gating.utils.types").ConnectedNodeList`
|
|
238
238
|
|
|
239
239
|
Disconnect all outbound connections for a node while collecting successors.
|
|
240
240
|
|
|
@@ -248,7 +248,7 @@ Returns: Successor nodes that were previously targeted by the removed node.
|
|
|
248
248
|
|
|
249
249
|
### preserveGaterForReassignment
|
|
250
250
|
|
|
251
|
-
`(connection: import("
|
|
251
|
+
`(connection: import("src/architecture/connection").default, removedNode: import("src/architecture/node").default, preservedGaters: import("src/architecture/network/gating/network.gating.utils.types").PreservedGaters, subNodeConfig: import("src/architecture/network/gating/network.gating.utils.types").NodeRemovalMutationConfig) => void`
|
|
252
252
|
|
|
253
253
|
Preserve a gater for later reassignment when gate retention is enabled.
|
|
254
254
|
|
|
@@ -262,7 +262,7 @@ Returns: Nothing.
|
|
|
262
262
|
|
|
263
263
|
### reassignPreservedGaters
|
|
264
264
|
|
|
265
|
-
`(network: import("
|
|
265
|
+
`(network: import("src/architecture/network").default, preservedGaters: import("src/architecture/network/gating/network.gating.utils.types").PreservedGaters, bridgingConnections: import("src/architecture/network/gating/network.gating.utils.types").BridgingConnectionList) => void`
|
|
266
266
|
|
|
267
267
|
Reattach preserved gaters to randomly selected newly-created bridge connections.
|
|
268
268
|
|
|
@@ -275,7 +275,7 @@ Returns: Nothing.
|
|
|
275
275
|
|
|
276
276
|
### removeNodeAtIndex
|
|
277
277
|
|
|
278
|
-
`(network: import("
|
|
278
|
+
`(network: import("src/architecture/network").default, nodeIndex: number) => void`
|
|
279
279
|
|
|
280
280
|
Remove a node from the network list and mark node indexing as dirty.
|
|
281
281
|
|
|
@@ -287,7 +287,7 @@ Returns: Nothing.
|
|
|
287
287
|
|
|
288
288
|
### resolveSubNodeMutationConfig
|
|
289
289
|
|
|
290
|
-
`() => import("
|
|
290
|
+
`() => import("src/architecture/network/gating/network.gating.utils.types").NodeRemovalMutationConfig`
|
|
291
291
|
|
|
292
292
|
Resolve the active SUB_NODE mutation configuration shape.
|
|
293
293
|
|
|
@@ -306,7 +306,7 @@ Returns: Random zero-based index.
|
|
|
306
306
|
|
|
307
307
|
### shouldCreateBridgeConnection
|
|
308
308
|
|
|
309
|
-
`(predecessorNode: import("
|
|
309
|
+
`(predecessorNode: import("src/architecture/node").default, successorNode: import("src/architecture/node").default) => boolean`
|
|
310
310
|
|
|
311
311
|
Decide whether a predecessor-successor pair should receive a bridge connection.
|
|
312
312
|
|
|
@@ -318,7 +318,7 @@ Returns: True when the pair is distinct and no projection already exists.
|
|
|
318
318
|
|
|
319
319
|
### ungateConnectionsGatedByNode
|
|
320
320
|
|
|
321
|
-
`(network: import("
|
|
321
|
+
`(network: import("src/architecture/network").default, node: import("src/architecture/node").default) => void`
|
|
322
322
|
|
|
323
323
|
Ungate all connections that are currently gated by the removed node.
|
|
324
324
|
|
|
@@ -26,7 +26,7 @@ Shared random generator signature for genetic operators.
|
|
|
26
26
|
|
|
27
27
|
### crossOver
|
|
28
28
|
|
|
29
|
-
`(parentNetwork1: import("
|
|
29
|
+
`(parentNetwork1: import("src/architecture/network").default, parentNetwork2: import("src/architecture/network").default, equal: boolean) => import("src/architecture/network").default`
|
|
30
30
|
|
|
31
31
|
Genetic operator: NEAT‑style crossover (legacy merge operator removed).
|
|
32
32
|
|
|
@@ -45,7 +45,7 @@ Design notes:
|
|
|
45
45
|
|
|
46
46
|
### asGeneticNetwork
|
|
47
47
|
|
|
48
|
-
`(network: import("
|
|
48
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").GeneticNetwork`
|
|
49
49
|
|
|
50
50
|
Coerces a network to the internal genetic runtime shape.
|
|
51
51
|
|
|
@@ -56,7 +56,7 @@ Returns: Network with runtime genetic properties.
|
|
|
56
56
|
|
|
57
57
|
### assignNodeIndexes
|
|
58
58
|
|
|
59
|
-
`(nodes: import("
|
|
59
|
+
`(nodes: import("src/architecture/node").default[]) => void`
|
|
60
60
|
|
|
61
61
|
Assigns contiguous indices to a node list.
|
|
62
62
|
|
|
@@ -67,7 +67,7 @@ Returns: Nothing.
|
|
|
67
67
|
|
|
68
68
|
### assignOffspringNodes
|
|
69
69
|
|
|
70
|
-
`(nodeContext: import("
|
|
70
|
+
`(nodeContext: import("src/architecture/network/network.types").CrossoverNodeBuildContext) => void`
|
|
71
71
|
|
|
72
72
|
Builds and reindexes offspring nodes.
|
|
73
73
|
|
|
@@ -78,7 +78,7 @@ Returns: Nothing.
|
|
|
78
78
|
|
|
79
79
|
### buildOffspringNodes
|
|
80
80
|
|
|
81
|
-
`(parent1: import("
|
|
81
|
+
`(parent1: import("src/architecture/network/network.types").GeneticNetwork, parent2: import("src/architecture/network/network.types").GeneticNetwork, parentMetrics: import("src/architecture/network/network.types").ParentMetrics, offspringNodeCount: number, equal: boolean, randomGenerator: import("src/architecture/network/genetic/network.genetic.utils.types").RandomGenerator) => import("src/architecture/node").default[]`
|
|
82
82
|
|
|
83
83
|
Builds the offspring node list by selecting genes per slot.
|
|
84
84
|
|
|
@@ -94,7 +94,7 @@ Returns: Cloned offspring node genes.
|
|
|
94
94
|
|
|
95
95
|
### chooseOffspringConnectionGenes
|
|
96
96
|
|
|
97
|
-
`(context: import("
|
|
97
|
+
`(context: import("src/architecture/network/network.types").CrossoverContext) => import("src/architecture/network/network.types").ConnectionGene[]`
|
|
98
98
|
|
|
99
99
|
Chooses all offspring connection genes from both parents.
|
|
100
100
|
|
|
@@ -105,7 +105,7 @@ Returns: Chosen connection genes.
|
|
|
105
105
|
|
|
106
106
|
### cloneNodeGene
|
|
107
107
|
|
|
108
|
-
`(sourceNode: import("
|
|
108
|
+
`(sourceNode: import("src/architecture/node").default) => import("src/architecture/node").default`
|
|
109
109
|
|
|
110
110
|
Clones node structural gene attributes.
|
|
111
111
|
|
|
@@ -116,7 +116,7 @@ Returns: Cloned node.
|
|
|
116
116
|
|
|
117
117
|
### createCrossoverContext
|
|
118
118
|
|
|
119
|
-
`(parentNetwork1: import("
|
|
119
|
+
`(parentNetwork1: import("src/architecture/network").default, parentNetwork2: import("src/architecture/network").default, equal: boolean) => import("src/architecture/network/network.types").CrossoverContext`
|
|
120
120
|
|
|
121
121
|
Creates the immutable crossover baseline context.
|
|
122
122
|
|
|
@@ -129,7 +129,7 @@ Returns: Initialized crossover context.
|
|
|
129
129
|
|
|
130
130
|
### createNodeBuildContext
|
|
131
131
|
|
|
132
|
-
`(context: import("
|
|
132
|
+
`(context: import("src/architecture/network/network.types").CrossoverContext) => import("src/architecture/network/network.types").CrossoverNodeBuildContext`
|
|
133
133
|
|
|
134
134
|
Creates the node-build context for offspring node selection.
|
|
135
135
|
|
|
@@ -140,7 +140,7 @@ Returns: Node-build context.
|
|
|
140
140
|
|
|
141
141
|
### createOffspringScaffold
|
|
142
142
|
|
|
143
|
-
`(inputSize: number, outputSize: number) => import("
|
|
143
|
+
`(inputSize: number, outputSize: number) => import("src/architecture/network/network.types").GeneticNetwork`
|
|
144
144
|
|
|
145
145
|
Creates an empty offspring scaffold with reset runtime arrays.
|
|
146
146
|
|
|
@@ -152,7 +152,7 @@ Returns: Initialized offspring runtime object.
|
|
|
152
152
|
|
|
153
153
|
### determineOffspringNodeCount
|
|
154
154
|
|
|
155
|
-
`(equal: boolean, parentMetrics: import("
|
|
155
|
+
`(equal: boolean, parentMetrics: import("src/architecture/network/network.types").ParentMetrics, randomGenerator: import("src/architecture/network/genetic/network.genetic.utils.types").RandomGenerator) => number`
|
|
156
156
|
|
|
157
157
|
Determines offspring node count from fitness/equality policy.
|
|
158
158
|
|
|
@@ -165,7 +165,7 @@ Returns: Offspring node count.
|
|
|
165
165
|
|
|
166
166
|
### getAlignedOutputNode
|
|
167
167
|
|
|
168
|
-
`(parent: import("
|
|
168
|
+
`(parent: import("src/architecture/network/network.types").GeneticNetwork, alignedIndex: number) => import("src/architecture/node").default | undefined`
|
|
169
169
|
|
|
170
170
|
Reads an aligned output candidate node if index is in the valid non-input range.
|
|
171
171
|
|
|
@@ -177,7 +177,7 @@ Returns: Output candidate node.
|
|
|
177
177
|
|
|
178
178
|
### getRandomGenerator
|
|
179
179
|
|
|
180
|
-
`(parentNetwork: import("
|
|
180
|
+
`(parentNetwork: import("src/architecture/network").default) => import("src/architecture/network/genetic/network.genetic.utils.types").RandomGenerator`
|
|
181
181
|
|
|
182
182
|
Resolves the random generator used by crossover decisions.
|
|
183
183
|
|
|
@@ -188,7 +188,7 @@ Returns: Random function.
|
|
|
188
188
|
|
|
189
189
|
### resolveParentMetrics
|
|
190
190
|
|
|
191
|
-
`(parent1: import("
|
|
191
|
+
`(parent1: import("src/architecture/network/network.types").GeneticNetwork, parent2: import("src/architecture/network/network.types").GeneticNetwork, outputSize: number) => import("src/architecture/network/network.types").ParentMetrics`
|
|
192
192
|
|
|
193
193
|
Computes common parent metrics reused across helper functions.
|
|
194
194
|
|
|
@@ -201,7 +201,7 @@ Returns: Parent metrics.
|
|
|
201
201
|
|
|
202
202
|
### selectHiddenNodeGene
|
|
203
203
|
|
|
204
|
-
`(nodeIndex: number, parent1: import("
|
|
204
|
+
`(nodeIndex: number, parent1: import("src/architecture/network/network.types").GeneticNetwork, parent2: import("src/architecture/network/network.types").GeneticNetwork, parentMetrics: import("src/architecture/network/network.types").ParentMetrics, equal: boolean, randomGenerator: import("src/architecture/network/genetic/network.genetic.utils.types").RandomGenerator) => import("src/architecture/node").default | undefined`
|
|
205
205
|
|
|
206
206
|
Selects a hidden-region node gene.
|
|
207
207
|
|
|
@@ -217,7 +217,7 @@ Returns: Selected hidden node gene.
|
|
|
217
217
|
|
|
218
218
|
### selectInputNodeGene
|
|
219
219
|
|
|
220
|
-
`(nodeIndex: number, parent1: import("
|
|
220
|
+
`(nodeIndex: number, parent1: import("src/architecture/network/network.types").GeneticNetwork) => import("src/architecture/node").default | undefined`
|
|
221
221
|
|
|
222
222
|
Selects an input-region node gene.
|
|
223
223
|
|
|
@@ -229,7 +229,7 @@ Returns: Parent 1 input node gene.
|
|
|
229
229
|
|
|
230
230
|
### selectNodeGeneAtIndex
|
|
231
231
|
|
|
232
|
-
`(nodeIndex: number, offspringNodeCount: number, parent1: import("
|
|
232
|
+
`(nodeIndex: number, offspringNodeCount: number, parent1: import("src/architecture/network/network.types").GeneticNetwork, parent2: import("src/architecture/network/network.types").GeneticNetwork, parentMetrics: import("src/architecture/network/network.types").ParentMetrics, equal: boolean, randomGenerator: import("src/architecture/network/genetic/network.genetic.utils.types").RandomGenerator) => import("src/architecture/node").default | undefined`
|
|
233
233
|
|
|
234
234
|
Selects a node gene for a specific offspring slot.
|
|
235
235
|
|
|
@@ -246,7 +246,7 @@ Returns: Selected parent node gene, if any.
|
|
|
246
246
|
|
|
247
247
|
### selectOutputNodeGene
|
|
248
248
|
|
|
249
|
-
`(nodeIndex: number, offspringNodeCount: number, parent1: import("
|
|
249
|
+
`(nodeIndex: number, offspringNodeCount: number, parent1: import("src/architecture/network/network.types").GeneticNetwork, parent2: import("src/architecture/network/network.types").GeneticNetwork, parentMetrics: import("src/architecture/network/network.types").ParentMetrics, randomGenerator: import("src/architecture/network/genetic/network.genetic.utils.types").RandomGenerator) => import("src/architecture/node").default | undefined`
|
|
250
250
|
|
|
251
251
|
Selects an output-region node gene using tail alignment.
|
|
252
252
|
|
|
@@ -262,7 +262,7 @@ Returns: Selected output node gene.
|
|
|
262
262
|
|
|
263
263
|
### validateParentCompatibility
|
|
264
264
|
|
|
265
|
-
`(parentNetwork1: import("
|
|
265
|
+
`(parentNetwork1: import("src/architecture/network").default, parentNetwork2: import("src/architecture/network").default) => void`
|
|
266
266
|
|
|
267
267
|
Validates parent compatibility for crossover.
|
|
268
268
|
|
|
@@ -276,7 +276,7 @@ Returns: Nothing.
|
|
|
276
276
|
|
|
277
277
|
### buildConnectionGene
|
|
278
278
|
|
|
279
|
-
`(connection: import("
|
|
279
|
+
`(connection: import("src/architecture/connection").default) => import("src/architecture/network/network.types").ConnectionGene | undefined`
|
|
280
280
|
|
|
281
281
|
Builds a connection gene from a concrete connection instance.
|
|
282
282
|
|
|
@@ -287,7 +287,7 @@ Returns: Gene descriptor, or undefined when endpoints lack valid indices.
|
|
|
287
287
|
|
|
288
288
|
### canInheritParent1DisjointGenes
|
|
289
289
|
|
|
290
|
-
`(context: import("
|
|
290
|
+
`(context: import("src/architecture/network/network.types").ConnectionGeneSelectionContext) => boolean`
|
|
291
291
|
|
|
292
292
|
Determines if parent-1 disjoint/excess genes are inheritable.
|
|
293
293
|
|
|
@@ -298,7 +298,7 @@ Returns: True when parent-1 disjoint genes can be selected.
|
|
|
298
298
|
|
|
299
299
|
### canInheritParent2DisjointGenes
|
|
300
300
|
|
|
301
|
-
`(context: import("
|
|
301
|
+
`(context: import("src/architecture/network/network.types").ConnectionGeneSelectionContext) => boolean`
|
|
302
302
|
|
|
303
303
|
Determines if parent-2 disjoint/excess genes are inheritable.
|
|
304
304
|
|
|
@@ -309,7 +309,7 @@ Returns: True when parent-2 disjoint genes can be selected.
|
|
|
309
309
|
|
|
310
310
|
### chooseConnectionGenes
|
|
311
311
|
|
|
312
|
-
`(parent1: import("
|
|
312
|
+
`(parent1: import("src/architecture/network/network.types").GeneticNetwork, parent2: import("src/architecture/network/network.types").GeneticNetwork, parentMetrics: import("src/architecture/network/network.types").ParentMetrics, parent1Genes: Record<string, import("src/architecture/network/network.types").ConnectionGene>, parent2Genes: Record<string, import("src/architecture/network/network.types").ConnectionGene>, equal: boolean, randomGenerator: import("src/architecture/network/genetic/network.genetic.utils.types").RandomGenerator) => import("src/architecture/network/network.types").ConnectionGene[]`
|
|
313
313
|
|
|
314
314
|
Selects connection genes for offspring inheritance.
|
|
315
315
|
|
|
@@ -326,7 +326,7 @@ Returns: Chosen genes for offspring materialization.
|
|
|
326
326
|
|
|
327
327
|
### chooseDisjointGeneFromParent
|
|
328
328
|
|
|
329
|
-
`(parent: import("
|
|
329
|
+
`(parent: import("src/architecture/network/network.types").GeneticNetwork, sourceGene: import("src/architecture/network/network.types").ConnectionGene) => import("src/architecture/network/network.types").ConnectionGene`
|
|
330
330
|
|
|
331
331
|
Chooses a disjoint/excess gene from a single parent.
|
|
332
332
|
|
|
@@ -338,7 +338,7 @@ Returns: Selected disjoint gene.
|
|
|
338
338
|
|
|
339
339
|
### chooseMatchingGene
|
|
340
340
|
|
|
341
|
-
`(parent1: import("
|
|
341
|
+
`(parent1: import("src/architecture/network/network.types").GeneticNetwork, parent2: import("src/architecture/network/network.types").GeneticNetwork, parent1Gene: import("src/architecture/network/network.types").ConnectionGene, parent2Gene: import("src/architecture/network/network.types").ConnectionGene, randomGenerator: import("src/architecture/network/genetic/network.genetic.utils.types").RandomGenerator) => import("src/architecture/network/network.types").ConnectionGene`
|
|
342
342
|
|
|
343
343
|
Chooses a gene for matching innovation IDs.
|
|
344
344
|
|
|
@@ -353,7 +353,7 @@ Returns: Selected gene.
|
|
|
353
353
|
|
|
354
354
|
### cloneConnectionGene
|
|
355
355
|
|
|
356
|
-
`(sourceGene: import("
|
|
356
|
+
`(sourceGene: import("src/architecture/network/network.types").ConnectionGene) => import("src/architecture/network/network.types").ConnectionGene`
|
|
357
357
|
|
|
358
358
|
Clones a connection gene.
|
|
359
359
|
|
|
@@ -364,7 +364,7 @@ Returns: Independent clone.
|
|
|
364
364
|
|
|
365
365
|
### collectConnectionGenes
|
|
366
366
|
|
|
367
|
-
`(parent: import("
|
|
367
|
+
`(parent: import("src/architecture/network/network.types").GeneticNetwork) => Record<string, import("src/architecture/network/network.types").ConnectionGene>`
|
|
368
368
|
|
|
369
369
|
Collects all connection genes (standard + self) keyed by innovation ID.
|
|
370
370
|
|
|
@@ -375,7 +375,7 @@ Returns: Innovation-keyed connection gene map.
|
|
|
375
375
|
|
|
376
376
|
### combineChosenGenes
|
|
377
377
|
|
|
378
|
-
`(parent1TraversalGenes: import("
|
|
378
|
+
`(parent1TraversalGenes: import("src/architecture/network/network.types").ConnectionGene[], parent2OnlyGenesToAppend: import("src/architecture/network/network.types").ConnectionGene[]) => import("src/architecture/network/network.types").ConnectionGene[]`
|
|
379
379
|
|
|
380
380
|
Combines selected gene partitions into one ordered list.
|
|
381
381
|
|
|
@@ -387,7 +387,7 @@ Returns: Combined chosen genes.
|
|
|
387
387
|
|
|
388
388
|
### createParent1TraversalContexts
|
|
389
389
|
|
|
390
|
-
`(context: import("
|
|
390
|
+
`(context: import("src/architecture/network/network.types").ConnectionGeneSelectionContext) => import("src/architecture/network/network.types").Parent1GeneTraversalContext[]`
|
|
391
391
|
|
|
392
392
|
Builds parent-1 traversal contexts keyed by innovation IDs.
|
|
393
393
|
|
|
@@ -398,7 +398,7 @@ Returns: Parent-1 traversal contexts.
|
|
|
398
398
|
|
|
399
399
|
### createSelectionContext
|
|
400
400
|
|
|
401
|
-
`(sourceParent1: import("
|
|
401
|
+
`(sourceParent1: import("src/architecture/network/network.types").GeneticNetwork, sourceParent2: import("src/architecture/network/network.types").GeneticNetwork, sourceParentMetrics: import("src/architecture/network/network.types").ParentMetrics, sourceParent1Genes: Record<string, import("src/architecture/network/network.types").ConnectionGene>, sourceParent2Genes: Record<string, import("src/architecture/network/network.types").ConnectionGene>, sourceEqual: boolean, sourceRandomGenerator: import("src/architecture/network/genetic/network.genetic.utils.types").RandomGenerator) => import("src/architecture/network/network.types").ConnectionGeneSelectionContext`
|
|
402
402
|
|
|
403
403
|
Creates the immutable context for this selection pass.
|
|
404
404
|
|
|
@@ -415,7 +415,7 @@ Returns: Selection context.
|
|
|
415
415
|
|
|
416
416
|
### foldParent1TraversalContexts
|
|
417
417
|
|
|
418
|
-
`(traversalContexts: import("
|
|
418
|
+
`(traversalContexts: import("src/architecture/network/network.types").Parent1GeneTraversalContext[]) => import("src/architecture/network/network.types").Parent1TraversalSelectionResult`
|
|
419
419
|
|
|
420
420
|
Folds parent-1 traversal contexts into selected genes and consumed IDs.
|
|
421
421
|
|
|
@@ -438,7 +438,7 @@ Returns: Probability in [0, 1].
|
|
|
438
438
|
|
|
439
439
|
### selectGeneForParent1TraversalContext
|
|
440
440
|
|
|
441
|
-
`(traversalContext: import("
|
|
441
|
+
`(traversalContext: import("src/architecture/network/network.types").Parent1GeneTraversalContext) => import("src/architecture/network/network.types").ConnectionGene | undefined`
|
|
442
442
|
|
|
443
443
|
Selects one inheritable gene for a parent-1 traversal context.
|
|
444
444
|
|
|
@@ -449,7 +449,7 @@ Returns: Selected gene or undefined.
|
|
|
449
449
|
|
|
450
450
|
### selectParent1TraversalGenes
|
|
451
451
|
|
|
452
|
-
`(context: import("
|
|
452
|
+
`(context: import("src/architecture/network/network.types").ConnectionGeneSelectionContext) => import("src/architecture/network/network.types").Parent1TraversalSelectionResult`
|
|
453
453
|
|
|
454
454
|
Selects genes reachable from parent-1 innovation traversal.
|
|
455
455
|
|
|
@@ -460,7 +460,7 @@ Returns: Parent-1 traversal result.
|
|
|
460
460
|
|
|
461
461
|
### selectParent2OnlyGenes
|
|
462
462
|
|
|
463
|
-
`(context: import("
|
|
463
|
+
`(context: import("src/architecture/network/network.types").ConnectionGeneSelectionContext, remainingParent2Genes: Record<string, import("src/architecture/network/network.types").ConnectionGene>) => import("src/architecture/network/network.types").ConnectionGene[]`
|
|
464
464
|
|
|
465
465
|
Selects inheritable parent-2-only disjoint/excess genes.
|
|
466
466
|
|
|
@@ -472,7 +472,7 @@ Returns: Selected parent-2-only genes.
|
|
|
472
472
|
|
|
473
473
|
### selectRemainingParent2Genes
|
|
474
474
|
|
|
475
|
-
`(context: import("
|
|
475
|
+
`(context: import("src/architecture/network/network.types").ConnectionGeneSelectionContext, consumedInnovationIds: string[]) => Record<string, import("src/architecture/network/network.types").ConnectionGene>`
|
|
476
476
|
|
|
477
477
|
Builds parent-2 gene map after removing consumed matching innovations.
|
|
478
478
|
|
|
@@ -486,7 +486,7 @@ Returns: Remaining parent-2 genes.
|
|
|
486
486
|
|
|
487
487
|
### applyConnectionGeneToConnection
|
|
488
488
|
|
|
489
|
-
`(connection: import("
|
|
489
|
+
`(connection: import("src/architecture/connection").default, connectionGene: import("src/architecture/network/network.types").ConnectionGene) => void`
|
|
490
490
|
|
|
491
491
|
Applies gene properties to a runtime connection.
|
|
492
492
|
|
|
@@ -498,7 +498,7 @@ Returns: Nothing.
|
|
|
498
498
|
|
|
499
499
|
### attachGaterIfAvailable
|
|
500
500
|
|
|
501
|
-
`(offspring: import("
|
|
501
|
+
`(offspring: import("src/architecture/network/network.types").GeneticNetwork, connection: import("src/architecture/connection").default, gaterIndex: number) => void`
|
|
502
502
|
|
|
503
503
|
Attaches a gater node when the target index is valid.
|
|
504
504
|
|
|
@@ -511,7 +511,7 @@ Returns: Nothing.
|
|
|
511
511
|
|
|
512
512
|
### collectEligibleTraversalContexts
|
|
513
513
|
|
|
514
|
-
`(context: import("
|
|
514
|
+
`(context: import("src/architecture/network/network.types").OffspringMaterializationContext, genes: import("src/architecture/network/network.types").ConnectionGene[]) => import("src/architecture/network/network.types").GeneTraversalContext[]`
|
|
515
515
|
|
|
516
516
|
Collects traversal contexts that satisfy all structural eligibility checks.
|
|
517
517
|
|
|
@@ -523,7 +523,7 @@ Returns: Eligible traversal contexts.
|
|
|
523
523
|
|
|
524
524
|
### createConnectionForEndpoints
|
|
525
525
|
|
|
526
|
-
`(endpointsContext: import("
|
|
526
|
+
`(endpointsContext: import("src/architecture/network/network.types").GeneEndpointsContext) => import("src/architecture/connection").default | undefined`
|
|
527
527
|
|
|
528
528
|
Creates a runtime connection for endpoint nodes.
|
|
529
529
|
|
|
@@ -534,7 +534,7 @@ Returns: Created connection or undefined.
|
|
|
534
534
|
|
|
535
535
|
### createMaterializationContext
|
|
536
536
|
|
|
537
|
-
`(targetOffspring: import("
|
|
537
|
+
`(targetOffspring: import("src/architecture/network/network.types").GeneticNetwork) => import("src/architecture/network/network.types").OffspringMaterializationContext`
|
|
538
538
|
|
|
539
539
|
Creates the immutable top-level context used during materialization.
|
|
540
540
|
|
|
@@ -545,7 +545,7 @@ Returns: Materialization context.
|
|
|
545
545
|
|
|
546
546
|
### createOffspringConnection
|
|
547
547
|
|
|
548
|
-
`(offspring: import("
|
|
548
|
+
`(offspring: import("src/architecture/network/network.types").GeneticNetwork, fromNode: import("src/architecture/node").default, toNode: import("src/architecture/node").default) => import("src/architecture/connection").default | undefined`
|
|
549
549
|
|
|
550
550
|
Creates a single offspring connection edge.
|
|
551
551
|
|
|
@@ -558,7 +558,7 @@ Returns: Created connection or undefined.
|
|
|
558
558
|
|
|
559
559
|
### createTraversalContexts
|
|
560
560
|
|
|
561
|
-
`(context: import("
|
|
561
|
+
`(context: import("src/architecture/network/network.types").OffspringMaterializationContext, genes: import("src/architecture/network/network.types").ConnectionGene[]) => import("src/architecture/network/network.types").GeneTraversalContext[]`
|
|
562
562
|
|
|
563
563
|
Builds traversal contexts for each candidate gene.
|
|
564
564
|
|
|
@@ -570,7 +570,7 @@ Returns: Traversal contexts.
|
|
|
570
570
|
|
|
571
571
|
### hasExistingProjection
|
|
572
572
|
|
|
573
|
-
`(endpointsContext: import("
|
|
573
|
+
`(endpointsContext: import("src/architecture/network/network.types").GeneEndpointsContext) => boolean`
|
|
574
574
|
|
|
575
575
|
Checks whether the source endpoint already projects to the target endpoint.
|
|
576
576
|
|
|
@@ -581,7 +581,7 @@ Returns: True when projection already exists.
|
|
|
581
581
|
|
|
582
582
|
### isTraversalContextFeedForward
|
|
583
583
|
|
|
584
|
-
`(traversalContext: import("
|
|
584
|
+
`(traversalContext: import("src/architecture/network/network.types").GeneTraversalContext) => boolean`
|
|
585
585
|
|
|
586
586
|
Validates that a traversal context follows feed-forward ordering.
|
|
587
587
|
|
|
@@ -592,7 +592,7 @@ Returns: True when the gene is strictly forward.
|
|
|
592
592
|
|
|
593
593
|
### isTraversalContextWithinNodeBounds
|
|
594
594
|
|
|
595
|
-
`(traversalContext: import("
|
|
595
|
+
`(traversalContext: import("src/architecture/network/network.types").GeneTraversalContext) => boolean`
|
|
596
596
|
|
|
597
597
|
Validates that a traversal context endpoints are inside offspring bounds.
|
|
598
598
|
|
|
@@ -603,7 +603,7 @@ Returns: True when both indices are bounded.
|
|
|
603
603
|
|
|
604
604
|
### keepFeedForwardTraversalContexts
|
|
605
605
|
|
|
606
|
-
`(traversalContexts: import("
|
|
606
|
+
`(traversalContexts: import("src/architecture/network/network.types").GeneTraversalContext[]) => import("src/architecture/network/network.types").GeneTraversalContext[]`
|
|
607
607
|
|
|
608
608
|
Keeps traversal contexts that preserve feed-forward edge direction.
|
|
609
609
|
|
|
@@ -614,7 +614,7 @@ Returns: Feed-forward contexts.
|
|
|
614
614
|
|
|
615
615
|
### keepTraversalContextsWithinNodeBounds
|
|
616
616
|
|
|
617
|
-
`(traversalContexts: import("
|
|
617
|
+
`(traversalContexts: import("src/architecture/network/network.types").GeneTraversalContext[]) => import("src/architecture/network/network.types").GeneTraversalContext[]`
|
|
618
618
|
|
|
619
619
|
Keeps traversal contexts whose endpoints are inside offspring bounds.
|
|
620
620
|
|
|
@@ -625,7 +625,7 @@ Returns: Node-bounded contexts.
|
|
|
625
625
|
|
|
626
626
|
### materializeOffspringConnections
|
|
627
627
|
|
|
628
|
-
`(offspring: import("
|
|
628
|
+
`(offspring: import("src/architecture/network/network.types").GeneticNetwork, chosenGenes: import("src/architecture/network/network.types").ConnectionGene[]) => void`
|
|
629
629
|
|
|
630
630
|
Materializes selected connection genes in the offspring network.
|
|
631
631
|
|
|
@@ -637,7 +637,7 @@ Returns: Nothing.
|
|
|
637
637
|
|
|
638
638
|
### materializeSingleTraversalContext
|
|
639
639
|
|
|
640
|
-
`(traversalContext: import("
|
|
640
|
+
`(traversalContext: import("src/architecture/network/network.types").GeneTraversalContext) => void`
|
|
641
641
|
|
|
642
642
|
Materializes one eligible traversal context when no duplicate projection exists.
|
|
643
643
|
|
|
@@ -648,7 +648,7 @@ Returns: Nothing.
|
|
|
648
648
|
|
|
649
649
|
### materializeTraversalContexts
|
|
650
650
|
|
|
651
|
-
`(traversalContexts: import("
|
|
651
|
+
`(traversalContexts: import("src/architecture/network/network.types").GeneTraversalContext[]) => void`
|
|
652
652
|
|
|
653
653
|
Materializes each eligible traversal context independently.
|
|
654
654
|
|
|
@@ -659,7 +659,7 @@ Returns: Nothing.
|
|
|
659
659
|
|
|
660
660
|
### resolveGeneEndpointsContext
|
|
661
661
|
|
|
662
|
-
`(traversalContext: import("
|
|
662
|
+
`(traversalContext: import("src/architecture/network/network.types").GeneTraversalContext) => import("src/architecture/network/network.types").GeneEndpointsContext | undefined`
|
|
663
663
|
|
|
664
664
|
Resolves concrete endpoint nodes for a traversal context.
|
|
665
665
|
|