@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
|
@@ -10,7 +10,7 @@ Internal network state shape shared by connect utility helper modules.
|
|
|
10
10
|
|
|
11
11
|
### connect
|
|
12
12
|
|
|
13
|
-
`(from: import("
|
|
13
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default, weight: number | undefined) => import("src/architecture/connection").default[]`
|
|
14
14
|
|
|
15
15
|
Create and register one (or multiple) directed connection objects between two nodes.
|
|
16
16
|
|
|
@@ -43,9 +43,11 @@ Parameters:
|
|
|
43
43
|
- `to` - - Target node (receives signal).
|
|
44
44
|
- `weight` - - Optional explicit initial weight value.
|
|
45
45
|
|
|
46
|
+
Returns: Array of created {@link Connection} objects (possibly empty if acyclicity rejected the edge).
|
|
47
|
+
|
|
46
48
|
### disconnect
|
|
47
49
|
|
|
48
|
-
`(from: import("
|
|
50
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default) => void`
|
|
49
51
|
|
|
50
52
|
Remove (at most) one directed connection from source 'from' to target 'to'.
|
|
51
53
|
|
|
@@ -78,7 +80,7 @@ Parameters:
|
|
|
78
80
|
|
|
79
81
|
### createConnectionsFromSourceNode
|
|
80
82
|
|
|
81
|
-
`(sourceNode: import("
|
|
83
|
+
`(sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default, initialWeight: number | undefined) => import("src/architecture/connection").default[]`
|
|
82
84
|
|
|
83
85
|
Build one or more low-level connection objects from source node to target node.
|
|
84
86
|
|
|
@@ -91,7 +93,7 @@ Returns: Created low-level connection objects.
|
|
|
91
93
|
|
|
92
94
|
### markConnectionCachesDirtyWhenNeeded
|
|
93
95
|
|
|
94
|
-
`(internalState: import("
|
|
96
|
+
`(internalState: import("src/architecture/network/network.types").ConnectNetworkInternals, createdConnectionCount: number) => void`
|
|
95
97
|
|
|
96
98
|
Mark topology and slab caches dirty when connection creation occurred.
|
|
97
99
|
|
|
@@ -103,7 +105,7 @@ Returns: Nothing.
|
|
|
103
105
|
|
|
104
106
|
### registerCreatedConnections
|
|
105
107
|
|
|
106
|
-
`(network: import("
|
|
108
|
+
`(network: import("src/architecture/network").default, internalState: import("src/architecture/network/network.types").ConnectNetworkInternals, sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default, createdConnections: import("src/architecture/connection").default[]) => void`
|
|
107
109
|
|
|
108
110
|
Register created connections in either normal-connection or self-connection storage.
|
|
109
111
|
|
|
@@ -118,7 +120,7 @@ Returns: Nothing.
|
|
|
118
120
|
|
|
119
121
|
### registerSingleCreatedConnection
|
|
120
122
|
|
|
121
|
-
`(network: import("
|
|
123
|
+
`(network: import("src/architecture/network").default, internalState: import("src/architecture/network/network.types").ConnectNetworkInternals, isSelfConnection: boolean, createdConnection: import("src/architecture/connection").default) => void`
|
|
122
124
|
|
|
123
125
|
Register one created connection in the appropriate collection.
|
|
124
126
|
|
|
@@ -132,7 +134,7 @@ Returns: Nothing.
|
|
|
132
134
|
|
|
133
135
|
### shouldRejectConnectionForAcyclicMode
|
|
134
136
|
|
|
135
|
-
`(network: import("
|
|
137
|
+
`(network: import("src/architecture/network").default, internalState: import("src/architecture/network/network.types").ConnectNetworkInternals, sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => boolean`
|
|
136
138
|
|
|
137
139
|
Determine whether an edge must be rejected to preserve acyclic ordering.
|
|
138
140
|
|
|
@@ -148,7 +150,7 @@ Returns: True when edge should be rejected.
|
|
|
148
150
|
|
|
149
151
|
### disconnectNodes
|
|
150
152
|
|
|
151
|
-
`(sourceNode: import("
|
|
153
|
+
`(sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => void`
|
|
152
154
|
|
|
153
155
|
Delegate per-node disconnect cleanup.
|
|
154
156
|
|
|
@@ -160,7 +162,7 @@ Returns: Nothing.
|
|
|
160
162
|
|
|
161
163
|
### findConnectionIndex
|
|
162
164
|
|
|
163
|
-
`(candidateConnections: import("
|
|
165
|
+
`(candidateConnections: import("src/architecture/connection").default[], sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => number`
|
|
164
166
|
|
|
165
167
|
Find index of the first connection matching source and target nodes.
|
|
166
168
|
|
|
@@ -173,7 +175,7 @@ Returns: Matching index or -1 when no edge is found.
|
|
|
173
175
|
|
|
174
176
|
### markStructureCachesDirty
|
|
175
177
|
|
|
176
|
-
`(internalState: import("
|
|
178
|
+
`(internalState: import("src/architecture/network/network.types").ConnectNetworkInternals) => void`
|
|
177
179
|
|
|
178
180
|
Mark topology/slab caches dirty after structural mutation.
|
|
179
181
|
|
|
@@ -184,7 +186,7 @@ Returns: Nothing.
|
|
|
184
186
|
|
|
185
187
|
### removeConnectionAtIndex
|
|
186
188
|
|
|
187
|
-
`(network: import("
|
|
189
|
+
`(network: import("src/architecture/network").default, candidateConnections: import("src/architecture/connection").default[], targetConnectionIndex: number) => void`
|
|
188
190
|
|
|
189
191
|
Remove one connection by index, ungating first if required.
|
|
190
192
|
|
|
@@ -197,7 +199,7 @@ Returns: Nothing.
|
|
|
197
199
|
|
|
198
200
|
### removeFirstMatchingConnection
|
|
199
201
|
|
|
200
|
-
`(network: import("
|
|
202
|
+
`(network: import("src/architecture/network").default, candidateConnections: import("src/architecture/connection").default[], sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => void`
|
|
201
203
|
|
|
202
204
|
Remove first connection that matches source and target nodes.
|
|
203
205
|
|
|
@@ -211,7 +213,7 @@ Returns: Nothing.
|
|
|
211
213
|
|
|
212
214
|
### selectConnectionCollection
|
|
213
215
|
|
|
214
|
-
`(network: import("
|
|
216
|
+
`(network: import("src/architecture/network").default, sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => import("src/architecture/connection").default[]`
|
|
215
217
|
|
|
216
218
|
Select the relevant collection to search for the edge.
|
|
217
219
|
|
|
@@ -109,7 +109,7 @@ Returns: Nothing.
|
|
|
109
109
|
|
|
110
110
|
### snapshotRNG
|
|
111
111
|
|
|
112
|
-
`() => import("
|
|
112
|
+
`() => import("src/architecture/network/network.types").RNGSnapshot`
|
|
113
113
|
|
|
114
114
|
Captures the current deterministic RNG lifecycle state as a portable snapshot.
|
|
115
115
|
|
|
@@ -138,7 +138,7 @@ Returns: Next unsigned 32-bit state.
|
|
|
138
138
|
|
|
139
139
|
### createDeterministicRandomFunction
|
|
140
140
|
|
|
141
|
-
`(internalState: import("
|
|
141
|
+
`(internalState: import("src/architecture/network/network.types").DeterministicNetworkInternals) => () => number`
|
|
142
142
|
|
|
143
143
|
Create deterministic PRNG function bound to provided internal state holder.
|
|
144
144
|
|
|
@@ -160,7 +160,7 @@ Returns: Mixed unsigned 32-bit word.
|
|
|
160
160
|
|
|
161
161
|
### setInternalSeedState
|
|
162
162
|
|
|
163
|
-
`(internalState: import("
|
|
163
|
+
`(internalState: import("src/architecture/network/network.types").DeterministicNetworkInternals, normalizedState: number) => void`
|
|
164
164
|
|
|
165
165
|
Assign normalized seed state to internal RNG storage.
|
|
166
166
|
|
|
@@ -172,7 +172,7 @@ Returns: Nothing.
|
|
|
172
172
|
|
|
173
173
|
### setRandomFunction
|
|
174
174
|
|
|
175
|
-
`(internalState: import("
|
|
175
|
+
`(internalState: import("src/architecture/network/network.types").DeterministicNetworkInternals, randomFunction: () => number) => void`
|
|
176
176
|
|
|
177
177
|
Assign the active random function reference.
|
|
178
178
|
|
|
@@ -278,7 +278,7 @@ Returns: Unsigned 32-bit state.
|
|
|
278
278
|
|
|
279
279
|
### clearStoredRngState
|
|
280
280
|
|
|
281
|
-
`(internalState: import("
|
|
281
|
+
`(internalState: import("src/architecture/network/network.types").DeterministicNetworkInternals) => void`
|
|
282
282
|
|
|
283
283
|
Clear stored numeric RNG state.
|
|
284
284
|
|
|
@@ -301,7 +301,7 @@ Returns: Nothing.
|
|
|
301
301
|
|
|
302
302
|
### setRandomFunction
|
|
303
303
|
|
|
304
|
-
`(internalState: import("
|
|
304
|
+
`(internalState: import("src/architecture/network/network.types").DeterministicNetworkInternals, randomFunction: () => number) => void`
|
|
305
305
|
|
|
306
306
|
Assign active random function reference.
|
|
307
307
|
|
|
@@ -313,7 +313,7 @@ Returns: Nothing.
|
|
|
313
313
|
|
|
314
314
|
### snapshotRNG
|
|
315
315
|
|
|
316
|
-
`() => import("
|
|
316
|
+
`() => import("src/architecture/network/network.types").RNGSnapshot`
|
|
317
317
|
|
|
318
318
|
Capture a snapshot of the RNG state together with the network's training step.
|
|
319
319
|
|
|
@@ -44,7 +44,7 @@ Structural counts used by complexity heuristics.
|
|
|
44
44
|
|
|
45
45
|
### evolveNetwork
|
|
46
46
|
|
|
47
|
-
`(set: import("
|
|
47
|
+
`(set: import("src/architecture/network/network.types").TrainingSample[], options: import("src/architecture/network/network.types").EvolveOptions) => Promise<{ error: number; iterations: number; time: number; }>`
|
|
48
48
|
|
|
49
49
|
Evolves a network with a NEAT-style search loop until an error target or generation limit is reached.
|
|
50
50
|
|
|
@@ -70,7 +70,7 @@ Returns: Final summary containing best error estimate, generations processed, an
|
|
|
70
70
|
|
|
71
71
|
### applyEvolutionStep
|
|
72
72
|
|
|
73
|
-
`(state: import("
|
|
73
|
+
`(state: import("src/architecture/network/network.types").EvolutionLoopState, evolvedGenome: import("src/architecture/network").default, growth: number) => void`
|
|
74
74
|
|
|
75
75
|
Applies one evolve() result to loop state.
|
|
76
76
|
|
|
@@ -83,7 +83,7 @@ Returns: Nothing.
|
|
|
83
83
|
|
|
84
84
|
### createInitialLoopState
|
|
85
85
|
|
|
86
|
-
`() => import("
|
|
86
|
+
`() => import("src/architecture/network/network.types").EvolutionLoopState`
|
|
87
87
|
|
|
88
88
|
Creates initial loop state snapshot.
|
|
89
89
|
|
|
@@ -91,7 +91,7 @@ Returns: Initial loop state.
|
|
|
91
91
|
|
|
92
92
|
### deriveErrorFromFitness
|
|
93
93
|
|
|
94
|
-
`(fitness: number, genome: import("
|
|
94
|
+
`(fitness: number, genome: import("src/architecture/network").default, growth: number) => number`
|
|
95
95
|
|
|
96
96
|
Derive error from fitness by inverting score composition.
|
|
97
97
|
|
|
@@ -104,7 +104,7 @@ Returns: Derived error value.
|
|
|
104
104
|
|
|
105
105
|
### runEvolutionLoop
|
|
106
106
|
|
|
107
|
-
`(neatInstance: import("
|
|
107
|
+
`(neatInstance: import("src/architecture/network/network.types").NeatRuntime, resolvedSettings: import("src/architecture/network/network.types").EvolutionSettings, targetError: number, iterations: number | undefined) => Promise<{ error: number; bestGenome: import("src/architecture/network").default | undefined; }>`
|
|
108
108
|
|
|
109
109
|
Run core evolution loop until stop condition is met.
|
|
110
110
|
|
|
@@ -132,7 +132,7 @@ Returns: Nothing.
|
|
|
132
132
|
|
|
133
133
|
### shouldAbortForInvalidErrors
|
|
134
134
|
|
|
135
|
-
`(state: import("
|
|
135
|
+
`(state: import("src/architecture/network/network.types").EvolutionLoopState) => boolean`
|
|
136
136
|
|
|
137
137
|
Determines whether loop must abort due to invalid-error streak.
|
|
138
138
|
|
|
@@ -158,7 +158,7 @@ Returns: True when loop should continue.
|
|
|
158
158
|
|
|
159
159
|
### updateBestGenomeIfImproved
|
|
160
160
|
|
|
161
|
-
`(currentBestFitness: number, currentBestGenome: import("
|
|
161
|
+
`(currentBestFitness: number, currentBestGenome: import("src/architecture/network").default | undefined, candidateFitness: number, candidateGenome: import("src/architecture/network").default) => { bestFitness: number; bestGenome: import("src/architecture/network").default | undefined; }`
|
|
162
162
|
|
|
163
163
|
Update best fitness/genome snapshot when improved.
|
|
164
164
|
|
|
@@ -186,7 +186,7 @@ Returns: Updated guard state.
|
|
|
186
186
|
|
|
187
187
|
### applySmallPopulationHeuristics
|
|
188
188
|
|
|
189
|
-
`(neatInstance: import("
|
|
189
|
+
`(neatInstance: import("src/architecture/network/network.types").NeatRuntime, evolveOptions: import("src/architecture/network/network.types").EvolveOptions) => void`
|
|
190
190
|
|
|
191
191
|
Increase mutation aggressiveness for tiny populations.
|
|
192
192
|
|
|
@@ -198,7 +198,7 @@ Returns: Nothing.
|
|
|
198
198
|
|
|
199
199
|
### assertEvolutionDatasetCompatibility
|
|
200
200
|
|
|
201
|
-
`(network: import("
|
|
201
|
+
`(network: import("src/architecture/network").default, dataSet: import("src/architecture/network/network.types").TrainingSample[]) => void`
|
|
202
202
|
|
|
203
203
|
Validate dataset existence and dimensional compatibility with network I/O.
|
|
204
204
|
|
|
@@ -210,7 +210,7 @@ Returns: Nothing.
|
|
|
210
210
|
|
|
211
211
|
### configureNeatOptions
|
|
212
212
|
|
|
213
|
-
`(network: import("
|
|
213
|
+
`(network: import("src/architecture/network").default, evolveOptions: import("src/architecture/network/network.types").EvolveOptions) => void`
|
|
214
214
|
|
|
215
215
|
Normalize options used by NEAT constructor.
|
|
216
216
|
|
|
@@ -222,7 +222,7 @@ Returns: Nothing.
|
|
|
222
222
|
|
|
223
223
|
### createEvolutionConfig
|
|
224
224
|
|
|
225
|
-
`(settingsToSummarize: import("
|
|
225
|
+
`(settingsToSummarize: import("src/architecture/network/network.types").EvolutionSettings) => import("src/architecture/network/network.types").EvolutionConfig | undefined`
|
|
226
226
|
|
|
227
227
|
Build optional structured evolution config summary.
|
|
228
228
|
|
|
@@ -233,7 +233,7 @@ Returns: Optional summary config.
|
|
|
233
233
|
|
|
234
234
|
### createNeatInstance
|
|
235
235
|
|
|
236
|
-
`(network: import("
|
|
236
|
+
`(network: import("src/architecture/network").default, fitnessFunction: import("src/architecture/network/network.types").EvolutionFitnessFunction, evolveOptions: import("src/architecture/network/network.types").EvolveOptions) => Promise<import("src/architecture/network/network.types").NeatRuntime>`
|
|
237
237
|
|
|
238
238
|
Lazy-load and create NEAT instance.
|
|
239
239
|
|
|
@@ -246,7 +246,7 @@ Returns: Constructed NEAT instance.
|
|
|
246
246
|
|
|
247
247
|
### getNormalizedOptions
|
|
248
248
|
|
|
249
|
-
`(evolveOptions: import("
|
|
249
|
+
`(evolveOptions: import("src/architecture/network/network.types").EvolveOptions) => import("src/architecture/network/network.types").EvolveOptions`
|
|
250
250
|
|
|
251
251
|
Ensure options object exists.
|
|
252
252
|
|
|
@@ -257,7 +257,7 @@ Returns: Safe options object.
|
|
|
257
257
|
|
|
258
258
|
### prepareFitnessFunction
|
|
259
259
|
|
|
260
|
-
`(dataSet: import("
|
|
260
|
+
`(dataSet: import("src/architecture/network/network.types").TrainingSample[], resolvedSettings: import("src/architecture/network/network.types").EvolutionSettings, evolveOptions: import("src/architecture/network/network.types").EvolveOptions) => Promise<import("src/architecture/network/network.types").FitnessSetup>`
|
|
261
261
|
|
|
262
262
|
Build fitness function according to threading configuration.
|
|
263
263
|
|
|
@@ -270,7 +270,7 @@ Returns: Fitness function and resolved thread count.
|
|
|
270
270
|
|
|
271
271
|
### resolveEvolutionSettings
|
|
272
272
|
|
|
273
|
-
`(evolveOptions: import("
|
|
273
|
+
`(evolveOptions: import("src/architecture/network/network.types").EvolveOptions) => import("src/architecture/network/network.types").EvolutionSettings`
|
|
274
274
|
|
|
275
275
|
Resolve normalized scalar settings with defaults.
|
|
276
276
|
|
|
@@ -281,7 +281,7 @@ Returns: Normalized scalar settings.
|
|
|
281
281
|
|
|
282
282
|
### resolveStopConditions
|
|
283
283
|
|
|
284
|
-
`(evolveOptions: import("
|
|
284
|
+
`(evolveOptions: import("src/architecture/network/network.types").EvolveOptions, initialTargetError: number) => import("src/architecture/network/network.types").EvolutionStopConditions`
|
|
285
285
|
|
|
286
286
|
Resolve stopping-condition semantics while preserving legacy behavior.
|
|
287
287
|
|
|
@@ -293,7 +293,7 @@ Returns: Final stop conditions.
|
|
|
293
293
|
|
|
294
294
|
### warnIfNoBestGenomeMayOccur
|
|
295
295
|
|
|
296
|
-
`(neatInstance: import("
|
|
296
|
+
`(neatInstance: import("src/architecture/network/network.types").NeatRuntime, evolveOptions: import("src/architecture/network/network.types").EvolveOptions) => void`
|
|
297
297
|
|
|
298
298
|
Emit warning when zero-iteration configuration may produce no best genome.
|
|
299
299
|
|
|
@@ -307,7 +307,7 @@ Returns: Nothing.
|
|
|
307
307
|
|
|
308
308
|
### buildMultiThreadFitness
|
|
309
309
|
|
|
310
|
-
`(set: import("
|
|
310
|
+
`(set: import("src/architecture/network/network.types").TrainingSample[], cost: import("src/architecture/network/network.types").CostFunctionOrRef, amount: number, growth: number, threads: number, options: Record<string, unknown>) => Promise<import("src/architecture/network/network.types").FitnessSetup>`
|
|
311
311
|
|
|
312
312
|
Build worker-based population fitness setup.
|
|
313
313
|
|
|
@@ -323,7 +323,7 @@ Returns: Population fitness setup.
|
|
|
323
323
|
|
|
324
324
|
### buildPopulationWorkerFitnessFunction
|
|
325
325
|
|
|
326
|
-
`(workers: import("
|
|
326
|
+
`(workers: import("src/multithreading/types").TestWorkerInstance[], growth: number) => import("src/architecture/network/network.types").PopulationFitnessFunction`
|
|
327
327
|
|
|
328
328
|
Build population-level fitness function powered by worker queue.
|
|
329
329
|
|
|
@@ -335,7 +335,7 @@ Returns: Population-level fitness function.
|
|
|
335
335
|
|
|
336
336
|
### buildSingleThreadFitness
|
|
337
337
|
|
|
338
|
-
`(set: import("
|
|
338
|
+
`(set: import("src/architecture/network/network.types").TrainingSample[], cost: import("src/architecture/network/network.types").EvolveCostFunction, amount: number, growth: number) => import("src/architecture/network/network.types").SingleGenomeFitnessFunction`
|
|
339
339
|
|
|
340
340
|
Build a single-threaded genome fitness evaluator.
|
|
341
341
|
|
|
@@ -349,7 +349,7 @@ Returns: Single-genome fitness function.
|
|
|
349
349
|
|
|
350
350
|
### cacheComplexityBase
|
|
351
351
|
|
|
352
|
-
`(genome: import("
|
|
352
|
+
`(genome: import("src/architecture/network").default, structureCounts: import("src/architecture/network/evolve/network.evolve.utils.types").GenomeStructureCounts, complexityBase: number) => void`
|
|
353
353
|
|
|
354
354
|
Store complexity base cache entry for future reuse.
|
|
355
355
|
|
|
@@ -362,7 +362,7 @@ Returns: Nothing.
|
|
|
362
362
|
|
|
363
363
|
### claimNextGenome
|
|
364
364
|
|
|
365
|
-
`(context: import("
|
|
365
|
+
`(context: import("src/architecture/network/network.types").PopulationWorkerEvaluationContext) => import("src/architecture/network").default | undefined`
|
|
366
366
|
|
|
367
367
|
Claims the next genome index from shared queue state.
|
|
368
368
|
|
|
@@ -373,7 +373,7 @@ Returns: Next genome, or undefined when queue is exhausted.
|
|
|
373
373
|
|
|
374
374
|
### computeComplexityBase
|
|
375
375
|
|
|
376
|
-
`(genome: import("
|
|
376
|
+
`(genome: import("src/architecture/network").default, structureCounts: import("src/architecture/network/evolve/network.evolve.utils.types").GenomeStructureCounts) => number`
|
|
377
377
|
|
|
378
378
|
Compute non-scaled complexity base from structural counts.
|
|
379
379
|
|
|
@@ -385,7 +385,7 @@ Returns: Base complexity value before growth scaling.
|
|
|
385
385
|
|
|
386
386
|
### computeComplexityPenalty
|
|
387
387
|
|
|
388
|
-
`(genome: import("
|
|
388
|
+
`(genome: import("src/architecture/network").default, growth: number) => number`
|
|
389
389
|
|
|
390
390
|
Compute structural complexity penalty scaled by growth.
|
|
391
391
|
|
|
@@ -397,7 +397,7 @@ Returns: Complexity penalty.
|
|
|
397
397
|
|
|
398
398
|
### createPopulationWorkerEvaluationContext
|
|
399
399
|
|
|
400
|
-
`(sourceWorkers: import("
|
|
400
|
+
`(sourceWorkers: import("src/multithreading/types").TestWorkerInstance[], sourcePopulation: import("src/architecture/network").default[], sourceGrowth: number, sourceResolve: () => void) => import("src/architecture/network/network.types").PopulationWorkerEvaluationContext`
|
|
401
401
|
|
|
402
402
|
Creates the shared evaluation context for one population run.
|
|
403
403
|
|
|
@@ -411,7 +411,7 @@ Returns: Population evaluation context.
|
|
|
411
411
|
|
|
412
412
|
### createSingleThreadFallbackFitness
|
|
413
413
|
|
|
414
|
-
`(set: import("
|
|
414
|
+
`(set: import("src/architecture/network/network.types").TrainingSample[], cost: import("src/architecture/network/network.types").CostFunctionOrRef, amount: number, growth: number) => import("src/architecture/network/network.types").FitnessSetup`
|
|
415
415
|
|
|
416
416
|
Build single-thread fallback fitness setup.
|
|
417
417
|
|
|
@@ -425,7 +425,7 @@ Returns: Single-thread fitness setup.
|
|
|
425
425
|
|
|
426
426
|
### createWorkerTraversalContext
|
|
427
427
|
|
|
428
|
-
`(context: import("
|
|
428
|
+
`(context: import("src/architecture/network/network.types").PopulationWorkerEvaluationContext, worker: import("src/multithreading/types").TestWorkerInstance) => import("src/architecture/network/network.types").WorkerTraversalContext`
|
|
429
429
|
|
|
430
430
|
Creates traversal context for one worker.
|
|
431
431
|
|
|
@@ -437,7 +437,7 @@ Returns: Worker traversal context.
|
|
|
437
437
|
|
|
438
438
|
### evaluateGenomeAmountTimes
|
|
439
439
|
|
|
440
|
-
`(genome: import("
|
|
440
|
+
`(genome: import("src/architecture/network").default, set: import("src/architecture/network/network.types").TrainingSample[], cost: import("src/architecture/network/network.types").EvolveCostFunction, amount: number) => number`
|
|
441
441
|
|
|
442
442
|
Evaluate one genome repeatedly and accumulate negative error.
|
|
443
443
|
|
|
@@ -451,7 +451,7 @@ Returns: Accumulated negative error or -Infinity on failure.
|
|
|
451
451
|
|
|
452
452
|
### evaluateGenomeErrorSafely
|
|
453
453
|
|
|
454
|
-
`(genome: import("
|
|
454
|
+
`(genome: import("src/architecture/network").default, set: import("src/architecture/network/network.types").TrainingSample[], cost: import("src/architecture/network/network.types").EvolveCostFunction) => number | null`
|
|
455
455
|
|
|
456
456
|
Evaluate one genome and return error, with warning-protected failure handling.
|
|
457
457
|
|
|
@@ -464,7 +464,7 @@ Returns: Error value, or null when evaluation fails.
|
|
|
464
464
|
|
|
465
465
|
### evaluateGenomeWithWorker
|
|
466
466
|
|
|
467
|
-
`(worker: import("
|
|
467
|
+
`(worker: import("src/multithreading/types").TestWorkerInstance, genome: import("src/architecture/network").default, growth: number) => Promise<void>`
|
|
468
468
|
|
|
469
469
|
Evaluate one genome with a worker and assign penalized score.
|
|
470
470
|
|
|
@@ -477,7 +477,7 @@ Returns: Promise resolving when score assignment completes.
|
|
|
477
477
|
|
|
478
478
|
### finalizeWorker
|
|
479
479
|
|
|
480
|
-
`(context: import("
|
|
480
|
+
`(context: import("src/architecture/network/network.types").PopulationWorkerEvaluationContext) => void`
|
|
481
481
|
|
|
482
482
|
Marks one worker as completed and resolves when all workers finish.
|
|
483
483
|
|
|
@@ -488,7 +488,7 @@ Returns: Nothing.
|
|
|
488
488
|
|
|
489
489
|
### getCachedComplexityBase
|
|
490
490
|
|
|
491
|
-
`(genome: import("
|
|
491
|
+
`(genome: import("src/architecture/network").default, structureCounts: import("src/architecture/network/evolve/network.evolve.utils.types").GenomeStructureCounts) => number | null`
|
|
492
492
|
|
|
493
493
|
Retrieve cached complexity base if cached structure counts still match.
|
|
494
494
|
|
|
@@ -500,7 +500,7 @@ Returns: Cached complexity base or null when cache miss occurs.
|
|
|
500
500
|
|
|
501
501
|
### getGenomeStructureCounts
|
|
502
502
|
|
|
503
|
-
`(genome: import("
|
|
503
|
+
`(genome: import("src/architecture/network").default) => import("src/architecture/network/evolve/network.evolve.utils.types").GenomeStructureCounts`
|
|
504
504
|
|
|
505
505
|
Get structural counts used by complexity heuristic.
|
|
506
506
|
|
|
@@ -511,7 +511,7 @@ Returns: Structural counts used for complexity computation.
|
|
|
511
511
|
|
|
512
512
|
### hasNoWorkers
|
|
513
513
|
|
|
514
|
-
`(context: import("
|
|
514
|
+
`(context: import("src/architecture/network/network.types").PopulationWorkerEvaluationContext) => boolean`
|
|
515
515
|
|
|
516
516
|
Checks whether there are workers available to process genomes.
|
|
517
517
|
|
|
@@ -522,7 +522,7 @@ Returns: True when worker pool is empty.
|
|
|
522
522
|
|
|
523
523
|
### installWorkerTerminationHook
|
|
524
524
|
|
|
525
|
-
`(options: Record<string, unknown>, workers: import("
|
|
525
|
+
`(options: Record<string, unknown>, workers: import("src/multithreading/types").TestWorkerInstance[]) => void`
|
|
526
526
|
|
|
527
527
|
Register worker termination hook onto options object.
|
|
528
528
|
|
|
@@ -534,7 +534,7 @@ Returns: Nothing.
|
|
|
534
534
|
|
|
535
535
|
### resolveCostName
|
|
536
536
|
|
|
537
|
-
`(cost: import("
|
|
537
|
+
`(cost: import("src/architecture/network/network.types").CostFunctionOrRef) => string`
|
|
538
538
|
|
|
539
539
|
Resolve serializable cost name for worker payload.
|
|
540
540
|
|
|
@@ -545,7 +545,7 @@ Returns: Cost name string.
|
|
|
545
545
|
|
|
546
546
|
### resolveEvaluation
|
|
547
547
|
|
|
548
|
-
`(context: import("
|
|
548
|
+
`(context: import("src/architecture/network/network.types").PopulationWorkerEvaluationContext) => void`
|
|
549
549
|
|
|
550
550
|
Resolves the population evaluation promise.
|
|
551
551
|
|
|
@@ -556,7 +556,7 @@ Returns: Nothing.
|
|
|
556
556
|
|
|
557
557
|
### resolveTestWorkerConstructor
|
|
558
558
|
|
|
559
|
-
`() => Promise<import("
|
|
559
|
+
`() => Promise<import("src/multithreading/types").TestWorkerConstructor | null>`
|
|
560
560
|
|
|
561
561
|
Resolve worker constructor for current runtime environment.
|
|
562
562
|
|
|
@@ -564,7 +564,7 @@ Returns: Worker constructor or null when unavailable.
|
|
|
564
564
|
|
|
565
565
|
### runWorkerTraversalStep
|
|
566
566
|
|
|
567
|
-
`(traversalContext: import("
|
|
567
|
+
`(traversalContext: import("src/architecture/network/network.types").WorkerTraversalContext) => void`
|
|
568
568
|
|
|
569
569
|
Runs one asynchronous traversal step for a worker.
|
|
570
570
|
|
|
@@ -575,7 +575,7 @@ Returns: Nothing.
|
|
|
575
575
|
|
|
576
576
|
### spawnTestWorkers
|
|
577
577
|
|
|
578
|
-
`(workerConstructor: import("
|
|
578
|
+
`(workerConstructor: import("src/multithreading/types").TestWorkerConstructor, serializedSet: number[], cost: import("src/architecture/network/network.types").CostFunctionOrRef, threads: number) => import("src/multithreading/types").TestWorkerInstance[]`
|
|
579
579
|
|
|
580
580
|
Spawn worker instances up to requested thread count.
|
|
581
581
|
|
|
@@ -589,7 +589,7 @@ Returns: Spawned worker instances.
|
|
|
589
589
|
|
|
590
590
|
### startWorkerTraversal
|
|
591
591
|
|
|
592
|
-
`(context: import("
|
|
592
|
+
`(context: import("src/architecture/network/network.types").PopulationWorkerEvaluationContext) => void`
|
|
593
593
|
|
|
594
594
|
Starts traversal loops for all workers.
|
|
595
595
|
|
|
@@ -613,7 +613,7 @@ Returns: Nothing.
|
|
|
613
613
|
|
|
614
614
|
### adoptBestGenomeOrWarn
|
|
615
615
|
|
|
616
|
-
`(network: import("
|
|
616
|
+
`(network: import("src/architecture/network").default, neatInstance: import("src/architecture/network/network.types").NeatRuntime, bestGenome: import("src/architecture/network").default | undefined, clearState: boolean) => void`
|
|
617
617
|
|
|
618
618
|
Adopt best genome structure or emit warning when unavailable.
|
|
619
619
|
|
|
@@ -627,7 +627,7 @@ Returns: Nothing.
|
|
|
627
627
|
|
|
628
628
|
### buildEvolutionSummary
|
|
629
629
|
|
|
630
|
-
`(error: number, iterations: number, loopStartTime: number) => import("
|
|
630
|
+
`(error: number, iterations: number, loopStartTime: number) => import("src/architecture/network/evolve/network.evolve.utils.types").EvolutionSummary`
|
|
631
631
|
|
|
632
632
|
Build final evolve return payload.
|
|
633
633
|
|
|
@@ -640,7 +640,7 @@ Returns: Evolution summary object.
|
|
|
640
640
|
|
|
641
641
|
### terminateWorkersSafely
|
|
642
642
|
|
|
643
|
-
`(evolveOptions: import("
|
|
643
|
+
`(evolveOptions: import("src/architecture/network/network.types").EvolveOptions) => void`
|
|
644
644
|
|
|
645
645
|
Terminate worker resources registered in options.
|
|
646
646
|
|