@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
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
### mutateImpl
|
|
52
52
|
|
|
53
|
-
`(method: import("
|
|
53
|
+
`(method: import("src/architecture/network/network.types").MutationMethod | undefined) => void`
|
|
54
54
|
|
|
55
55
|
Public entry point: apply a single mutation operator to the network.
|
|
56
56
|
|
|
@@ -78,7 +78,7 @@ Mutation method descriptor shape.
|
|
|
78
78
|
|
|
79
79
|
### findMutationKeyByIdentityReference
|
|
80
80
|
|
|
81
|
-
`(method: import("
|
|
81
|
+
`(method: import("src/architecture/network/network.types").MutationMethod) => string | undefined`
|
|
82
82
|
|
|
83
83
|
Resolves a mutation key by direct identity-reference comparison.
|
|
84
84
|
|
|
@@ -89,7 +89,7 @@ Returns: Matching mutation key or undefined.
|
|
|
89
89
|
|
|
90
90
|
### isMutationMethodKeyString
|
|
91
91
|
|
|
92
|
-
`(method: import("
|
|
92
|
+
`(method: import("src/architecture/network/network.types").MutationMethod) => boolean`
|
|
93
93
|
|
|
94
94
|
Checks whether mutation input is already a direct key string.
|
|
95
95
|
|
|
@@ -111,7 +111,7 @@ Returns: Direct key or undefined.
|
|
|
111
111
|
|
|
112
112
|
### resolveMutationKey
|
|
113
113
|
|
|
114
|
-
`(method: import("
|
|
114
|
+
`(method: import("src/architecture/network/network.types").MutationMethod) => string | undefined`
|
|
115
115
|
|
|
116
116
|
Mutation-key normalization and warning helpers used by the mutate orchestrator.
|
|
117
117
|
|
|
@@ -227,7 +227,7 @@ Returns: Nothing.
|
|
|
227
227
|
|
|
228
228
|
### addNodeDeterministicChain
|
|
229
229
|
|
|
230
|
-
`(network: import("
|
|
230
|
+
`(network: import("src/architecture/network").default, mutationProps: import("src/architecture/network/network.types").NetworkMutationProps) => void`
|
|
231
231
|
|
|
232
232
|
Applies deterministic chain-growth ADD_NODE mutation.
|
|
233
233
|
|
|
@@ -239,7 +239,7 @@ Returns: Nothing.
|
|
|
239
239
|
|
|
240
240
|
### addNodeRandomSplit
|
|
241
241
|
|
|
242
|
-
`(network: import("
|
|
242
|
+
`(network: import("src/architecture/network").default, mutationProps: import("src/architecture/network/network.types").NetworkMutationProps) => void`
|
|
243
243
|
|
|
244
244
|
Applies non-deterministic ADD_NODE by splitting a random connection.
|
|
245
245
|
|
|
@@ -251,7 +251,7 @@ Returns: Nothing.
|
|
|
251
251
|
|
|
252
252
|
### addRecurrentNode
|
|
253
253
|
|
|
254
|
-
`(network: import("
|
|
254
|
+
`(network: import("src/architecture/network").default, blockType: "lstm" | "gru") => void`
|
|
255
255
|
|
|
256
256
|
Shared orchestrator for recurrent-node mutation variants.
|
|
257
257
|
|
|
@@ -276,7 +276,7 @@ Returns: Nothing.
|
|
|
276
276
|
|
|
277
277
|
### appendBackwardCandidatesForLaterNode
|
|
278
278
|
|
|
279
|
-
`(traversalContext: import("
|
|
279
|
+
`(traversalContext: import("src/architecture/network/network.types").BackwardCandidateTraversalContext, backwardConnectionCandidates: import("src/architecture/network/network.types").NodePair[]) => void`
|
|
280
280
|
|
|
281
281
|
Appends backward candidates for one later-node traversal context.
|
|
282
282
|
|
|
@@ -288,7 +288,7 @@ Returns: Nothing.
|
|
|
288
288
|
|
|
289
289
|
### appendForwardCandidatesForSource
|
|
290
290
|
|
|
291
|
-
`(traversalContext: import("
|
|
291
|
+
`(traversalContext: import("src/architecture/network/network.types").ForwardCandidateTraversalContext, forwardConnectionCandidates: import("src/architecture/network/network.types").NodePair[]) => void`
|
|
292
292
|
|
|
293
293
|
Appends forward candidates for a single source-node traversal context.
|
|
294
294
|
|
|
@@ -300,7 +300,7 @@ Returns: Nothing.
|
|
|
300
300
|
|
|
301
301
|
### appendRecurrentLayerNodes
|
|
302
302
|
|
|
303
|
-
`(network: import("
|
|
303
|
+
`(network: import("src/architecture/network").default, layerNodes: import("src/architecture/node").default[]) => void`
|
|
304
304
|
|
|
305
305
|
Appends recurrent layer nodes as hidden nodes.
|
|
306
306
|
|
|
@@ -312,7 +312,7 @@ Returns: Nothing.
|
|
|
312
312
|
|
|
313
313
|
### applyFirstConnectionStabilityNudge
|
|
314
314
|
|
|
315
|
-
`(network: import("
|
|
315
|
+
`(network: import("src/architecture/network").default) => void`
|
|
316
316
|
|
|
317
317
|
Applies tiny stability nudge to the first remaining connection.
|
|
318
318
|
|
|
@@ -323,7 +323,7 @@ Returns: Nothing.
|
|
|
323
323
|
|
|
324
324
|
### asMutationProps
|
|
325
325
|
|
|
326
|
-
`(network: import("
|
|
326
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").NetworkMutationProps`
|
|
327
327
|
|
|
328
328
|
Concrete mutation handler implementations used by the network mutate orchestrator.
|
|
329
329
|
|
|
@@ -351,7 +351,7 @@ Returns: Nothing.
|
|
|
351
351
|
|
|
352
352
|
### collectAllConnections
|
|
353
353
|
|
|
354
|
-
`(network: import("
|
|
354
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/connection").default[]`
|
|
355
355
|
|
|
356
356
|
Collects normal and self connections.
|
|
357
357
|
|
|
@@ -362,7 +362,7 @@ Returns: Combined connections.
|
|
|
362
362
|
|
|
363
363
|
### collectBackwardCandidatesForLaterNode
|
|
364
364
|
|
|
365
|
-
`(traversalContext: import("
|
|
365
|
+
`(traversalContext: import("src/architecture/network/network.types").BackwardCandidateTraversalContext) => import("src/architecture/network/network.types").NodePair[]`
|
|
366
366
|
|
|
367
367
|
Collects all backward candidates for one later-node traversal context.
|
|
368
368
|
|
|
@@ -373,7 +373,7 @@ Returns: Candidate source/target pairs.
|
|
|
373
373
|
|
|
374
374
|
### collectBackwardCandidatesFromContext
|
|
375
375
|
|
|
376
|
-
`(backwardConnectionCandidates: import("
|
|
376
|
+
`(backwardConnectionCandidates: import("src/architecture/network/network.types").NodePair[], traversalContext: import("src/architecture/network/network.types").BackwardCandidateTraversalContext) => import("src/architecture/network/network.types").NodePair[]`
|
|
377
377
|
|
|
378
378
|
Reduces one backward traversal context into candidate connection pairs.
|
|
379
379
|
|
|
@@ -385,7 +385,7 @@ Returns: Updated candidate pairs.
|
|
|
385
385
|
|
|
386
386
|
### collectBackwardConnectionCandidates
|
|
387
387
|
|
|
388
|
-
`(network: import("
|
|
388
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").NodePair[]`
|
|
389
389
|
|
|
390
390
|
Collects backward (recurrent) connection candidates.
|
|
391
391
|
|
|
@@ -396,7 +396,7 @@ Returns: Candidate source/target pairs.
|
|
|
396
396
|
|
|
397
397
|
### collectBackwardTraversalContexts
|
|
398
398
|
|
|
399
|
-
`(network: import("
|
|
399
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").BackwardCandidateTraversalContext[]`
|
|
400
400
|
|
|
401
401
|
Collects backward traversal contexts for all eligible later nodes.
|
|
402
402
|
|
|
@@ -407,7 +407,7 @@ Returns: Backward traversal contexts.
|
|
|
407
407
|
|
|
408
408
|
### collectConnectionGroupsForReinit
|
|
409
409
|
|
|
410
|
-
`(targetNode: import("
|
|
410
|
+
`(targetNode: import("src/architecture/node").default) => import("src/architecture/connection").default[][]`
|
|
411
411
|
|
|
412
412
|
Collects all connection groups affected by REINIT_WEIGHT.
|
|
413
413
|
|
|
@@ -418,7 +418,7 @@ Returns: Mutable connection groups.
|
|
|
418
418
|
|
|
419
419
|
### collectDistinctNodeCandidates
|
|
420
420
|
|
|
421
|
-
`(nodeCandidates: import("
|
|
421
|
+
`(nodeCandidates: import("src/architecture/node").default[], excludedNode: import("src/architecture/node").default) => import("src/architecture/node").default[]`
|
|
422
422
|
|
|
423
423
|
Collects candidates that are distinct from an excluded node.
|
|
424
424
|
|
|
@@ -430,7 +430,7 @@ Returns: Distinct candidates.
|
|
|
430
430
|
|
|
431
431
|
### collectForwardCandidatesForSource
|
|
432
432
|
|
|
433
|
-
`(traversalContext: import("
|
|
433
|
+
`(traversalContext: import("src/architecture/network/network.types").ForwardCandidateTraversalContext) => import("src/architecture/network/network.types").NodePair[]`
|
|
434
434
|
|
|
435
435
|
Collects all forward candidates for one source traversal context.
|
|
436
436
|
|
|
@@ -441,7 +441,7 @@ Returns: Candidate source/target pairs.
|
|
|
441
441
|
|
|
442
442
|
### collectForwardCandidatesFromContext
|
|
443
443
|
|
|
444
|
-
`(forwardConnectionCandidates: import("
|
|
444
|
+
`(forwardConnectionCandidates: import("src/architecture/network/network.types").NodePair[], traversalContext: import("src/architecture/network/network.types").ForwardCandidateTraversalContext) => import("src/architecture/network/network.types").NodePair[]`
|
|
445
445
|
|
|
446
446
|
Reduces one forward traversal context into candidate connection pairs.
|
|
447
447
|
|
|
@@ -453,7 +453,7 @@ Returns: Updated candidate pairs.
|
|
|
453
453
|
|
|
454
454
|
### collectForwardConnectionCandidates
|
|
455
455
|
|
|
456
|
-
`(network: import("
|
|
456
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").NodePair[]`
|
|
457
457
|
|
|
458
458
|
Collects forward connection candidates.
|
|
459
459
|
|
|
@@ -464,7 +464,7 @@ Returns: Candidate source/target pairs.
|
|
|
464
464
|
|
|
465
465
|
### collectForwardTraversalContexts
|
|
466
466
|
|
|
467
|
-
`(network: import("
|
|
467
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").ForwardCandidateTraversalContext[]`
|
|
468
468
|
|
|
469
469
|
Collects forward traversal contexts for all eligible source nodes.
|
|
470
470
|
|
|
@@ -475,7 +475,7 @@ Returns: Forward traversal contexts.
|
|
|
475
475
|
|
|
476
476
|
### collectMutableNonInputNodes
|
|
477
477
|
|
|
478
|
-
`(network: import("
|
|
478
|
+
`(network: import("src/architecture/network").default, excludeOutputNodes: boolean) => import("src/architecture/node").default[]`
|
|
479
479
|
|
|
480
480
|
Collects mutable non-input nodes.
|
|
481
481
|
|
|
@@ -487,7 +487,7 @@ Returns: Mutable nodes.
|
|
|
487
487
|
|
|
488
488
|
### collectNodesByType
|
|
489
489
|
|
|
490
|
-
`(network: import("
|
|
490
|
+
`(network: import("src/architecture/network").default, nodeType: string) => import("src/architecture/node").default[]`
|
|
491
491
|
|
|
492
492
|
Collects nodes by type.
|
|
493
493
|
|
|
@@ -499,7 +499,7 @@ Returns: Matching nodes.
|
|
|
499
499
|
|
|
500
500
|
### collectNodesWithoutSelfLoop
|
|
501
501
|
|
|
502
|
-
`(network: import("
|
|
502
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/node").default[]`
|
|
503
503
|
|
|
504
504
|
Collects non-input nodes that do not have self loops.
|
|
505
505
|
|
|
@@ -510,7 +510,7 @@ Returns: Eligible nodes.
|
|
|
510
510
|
|
|
511
511
|
### collectRemovableBackwardConnections
|
|
512
512
|
|
|
513
|
-
`(network: import("
|
|
513
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/connection").default[]`
|
|
514
514
|
|
|
515
515
|
Collects removable backward connections using redundancy constraints.
|
|
516
516
|
|
|
@@ -521,7 +521,7 @@ Returns: Removable backward connections.
|
|
|
521
521
|
|
|
522
522
|
### collectRemovableForwardConnections
|
|
523
523
|
|
|
524
|
-
`(network: import("
|
|
524
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/connection").default[]`
|
|
525
525
|
|
|
526
526
|
Collects removable forward connections using redundancy constraints.
|
|
527
527
|
|
|
@@ -532,7 +532,7 @@ Returns: Removable forward connections.
|
|
|
532
532
|
|
|
533
533
|
### collectSwappableNodesForMutation
|
|
534
534
|
|
|
535
|
-
`(network: import("
|
|
535
|
+
`(network: import("src/architecture/network").default, method: import("src/architecture/network/network.types").MutationMethod | undefined) => import("src/architecture/node").default[]`
|
|
536
536
|
|
|
537
537
|
Collects swap-eligible nodes based on mutation configuration.
|
|
538
538
|
|
|
@@ -544,7 +544,7 @@ Returns: Swap-eligible nodes.
|
|
|
544
544
|
|
|
545
545
|
### collectTargetLayerPeers
|
|
546
546
|
|
|
547
|
-
`(network: import("
|
|
547
|
+
`(network: import("src/architecture/network").default, targetNode: import("src/architecture/node").default) => import("src/architecture/node").default[]`
|
|
548
548
|
|
|
549
549
|
Collects peers around a target node in the same type/layer neighborhood.
|
|
550
550
|
|
|
@@ -556,7 +556,7 @@ Returns: Peer nodes.
|
|
|
556
556
|
|
|
557
557
|
### collectUngatedConnections
|
|
558
558
|
|
|
559
|
-
`(network: import("
|
|
559
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/connection").default[]`
|
|
560
560
|
|
|
561
561
|
Collects ungated connections including self-connections.
|
|
562
562
|
|
|
@@ -567,7 +567,7 @@ Returns: Ungated connections.
|
|
|
567
567
|
|
|
568
568
|
### connectPair
|
|
569
569
|
|
|
570
|
-
`(network: import("
|
|
570
|
+
`(network: import("src/architecture/network").default, selectedConnectionPair: import("src/architecture/network/network.types").NodePair) => void`
|
|
571
571
|
|
|
572
572
|
Connects source/target node pair.
|
|
573
573
|
|
|
@@ -579,7 +579,7 @@ Returns: Nothing.
|
|
|
579
579
|
|
|
580
580
|
### containsNode
|
|
581
581
|
|
|
582
|
-
`(nodes: import("
|
|
582
|
+
`(nodes: import("src/architecture/node").default[], node: import("src/architecture/node").default) => boolean`
|
|
583
583
|
|
|
584
584
|
Checks whether a node list contains a node reference.
|
|
585
585
|
|
|
@@ -591,7 +591,7 @@ Returns: True when contained.
|
|
|
591
591
|
|
|
592
592
|
### countConnectionWhenSourceTargetsPeer
|
|
593
593
|
|
|
594
|
-
`(peerConnectionsFromSource: number, existingConnection: import("
|
|
594
|
+
`(peerConnectionsFromSource: number, existingConnection: import("src/architecture/connection").default, countContext: import("src/architecture/network/network.types").SourcePeerConnectionCountContext) => number`
|
|
595
595
|
|
|
596
596
|
Counts one connection when it originates from source and targets a peer.
|
|
597
597
|
|
|
@@ -604,7 +604,7 @@ Returns: Updated count.
|
|
|
604
604
|
|
|
605
605
|
### countSourceConnectionsIntoPeerSet
|
|
606
606
|
|
|
607
|
-
`(network: import("
|
|
607
|
+
`(network: import("src/architecture/network").default, candidateConnection: import("src/architecture/connection").default, targetLayerPeers: import("src/architecture/node").default[]) => number`
|
|
608
608
|
|
|
609
609
|
Counts source-originated connections that end inside the target peer set.
|
|
610
610
|
|
|
@@ -617,7 +617,7 @@ Returns: Number of source-to-peer connections.
|
|
|
617
617
|
|
|
618
618
|
### createBackwardCandidateTraversalContext
|
|
619
619
|
|
|
620
|
-
`(network: import("
|
|
620
|
+
`(network: import("src/architecture/network").default, laterNodeIndex: number) => import("src/architecture/network/network.types").BackwardCandidateTraversalContext`
|
|
621
621
|
|
|
622
622
|
Creates context for one backward-candidate traversal pass.
|
|
623
623
|
|
|
@@ -629,7 +629,7 @@ Returns: Immutable traversal context.
|
|
|
629
629
|
|
|
630
630
|
### createConnectionGroupReinitContext
|
|
631
631
|
|
|
632
|
-
`(randomValue: () => number, methodObject: { [key: string]: unknown; name?: string | undefined; type?: string | undefined; identity?: string | undefined; max?: number | undefined; min?: number | undefined; mutateOutput?: boolean | undefined; }) => import("
|
|
632
|
+
`(randomValue: () => number, methodObject: { [key: string]: unknown; name?: string | undefined; type?: string | undefined; identity?: string | undefined; max?: number | undefined; min?: number | undefined; mutateOutput?: boolean | undefined; }) => import("src/architecture/network/network.types").ConnectionGroupReinitContext`
|
|
633
633
|
|
|
634
634
|
Creates immutable context for connection-group reinitialization.
|
|
635
635
|
|
|
@@ -641,7 +641,7 @@ Returns: Reinitialization context.
|
|
|
641
641
|
|
|
642
642
|
### createDirectionalConnectionContext
|
|
643
643
|
|
|
644
|
-
`(network: import("
|
|
644
|
+
`(network: import("src/architecture/network").default, candidateConnection: import("src/architecture/connection").default) => import("src/architecture/network/network.types").DirectionalConnectionContext`
|
|
645
645
|
|
|
646
646
|
Creates indexed directional context for a connection candidate.
|
|
647
647
|
|
|
@@ -653,7 +653,7 @@ Returns: Directional context.
|
|
|
653
653
|
|
|
654
654
|
### createForwardCandidateTraversalContext
|
|
655
655
|
|
|
656
|
-
`(network: import("
|
|
656
|
+
`(network: import("src/architecture/network").default, sourceNodeIndex: number) => import("src/architecture/network/network.types").ForwardCandidateTraversalContext`
|
|
657
657
|
|
|
658
658
|
Creates context for one forward-candidate source traversal pass.
|
|
659
659
|
|
|
@@ -665,7 +665,7 @@ Returns: Immutable traversal context.
|
|
|
665
665
|
|
|
666
666
|
### createHiddenNode
|
|
667
667
|
|
|
668
|
-
`(randomValue: () => number) => import("
|
|
668
|
+
`(randomValue: () => number) => import("src/architecture/node").default`
|
|
669
669
|
|
|
670
670
|
Creates a hidden node with random activation mutation.
|
|
671
671
|
|
|
@@ -676,7 +676,7 @@ Returns: Hidden node.
|
|
|
676
676
|
|
|
677
677
|
### createRecurrentLayer
|
|
678
678
|
|
|
679
|
-
`(blockType: "lstm" | "gru") => import("
|
|
679
|
+
`(blockType: "lstm" | "gru") => import("src/architecture/network/network.types").RecurrentLayerShape`
|
|
680
680
|
|
|
681
681
|
Creates recurrent layer by type.
|
|
682
682
|
|
|
@@ -687,7 +687,7 @@ Returns: Created recurrent layer.
|
|
|
687
687
|
|
|
688
688
|
### createSourcePeerConnectionCountContext
|
|
689
689
|
|
|
690
|
-
`(candidateConnection: import("
|
|
690
|
+
`(candidateConnection: import("src/architecture/connection").default, targetLayerPeers: import("src/architecture/node").default[]) => import("src/architecture/network/network.types").SourcePeerConnectionCountContext`
|
|
691
691
|
|
|
692
692
|
Creates immutable context for source-to-peer connection counting.
|
|
693
693
|
|
|
@@ -699,7 +699,7 @@ Returns: Count context.
|
|
|
699
699
|
|
|
700
700
|
### createTargetLayerPeerContext
|
|
701
701
|
|
|
702
|
-
`(network: import("
|
|
702
|
+
`(network: import("src/architecture/network").default, targetNode: import("src/architecture/node").default) => import("src/architecture/network/network.types").TargetLayerPeerContext`
|
|
703
703
|
|
|
704
704
|
Creates immutable context for peer-layer collection.
|
|
705
705
|
|
|
@@ -711,7 +711,7 @@ Returns: Peer traversal context.
|
|
|
711
711
|
|
|
712
712
|
### createWeightSamplingRangeContext
|
|
713
713
|
|
|
714
|
-
`(reinitContext: import("
|
|
714
|
+
`(reinitContext: import("src/architecture/network/network.types").ConnectionGroupReinitContext) => import("src/architecture/network/network.types").WeightSamplingRangeContext`
|
|
715
715
|
|
|
716
716
|
Creates immutable sampling range context.
|
|
717
717
|
|
|
@@ -722,7 +722,7 @@ Returns: Sampling range context.
|
|
|
722
722
|
|
|
723
723
|
### disconnectConnectionAndGetGater
|
|
724
724
|
|
|
725
|
-
`(network: import("
|
|
725
|
+
`(network: import("src/architecture/network").default, connectionToExpand: import("src/architecture/connection").default) => import("src/architecture/node").default | null`
|
|
726
726
|
|
|
727
727
|
Disconnects a connection and returns its previous gater.
|
|
728
728
|
|
|
@@ -734,7 +734,7 @@ Returns: Previous gater reference.
|
|
|
734
734
|
|
|
735
735
|
### disconnectConnectionPair
|
|
736
736
|
|
|
737
|
-
`(network: import("
|
|
737
|
+
`(network: import("src/architecture/network").default, selectedConnection: import("src/architecture/connection").default) => void`
|
|
738
738
|
|
|
739
739
|
Disconnects selected connection by endpoints.
|
|
740
740
|
|
|
@@ -746,7 +746,7 @@ Returns: Nothing.
|
|
|
746
746
|
|
|
747
747
|
### disconnectUnexpectedOutgoingConnections
|
|
748
748
|
|
|
749
|
-
`(network: import("
|
|
749
|
+
`(network: import("src/architecture/network").default, chainNode: import("src/architecture/node").default, expectedTargetNode: import("src/architecture/node").default) => void`
|
|
750
750
|
|
|
751
751
|
Removes outgoing connections that do not match the expected chain target.
|
|
752
752
|
|
|
@@ -759,7 +759,7 @@ Returns: Nothing.
|
|
|
759
759
|
|
|
760
760
|
### enableNodeBatchNorm
|
|
761
761
|
|
|
762
|
-
`(node: import("
|
|
762
|
+
`(node: import("src/architecture/node").default) => void`
|
|
763
763
|
|
|
764
764
|
Enables internal batch-norm flag on a node.
|
|
765
765
|
|
|
@@ -770,7 +770,7 @@ Returns: Nothing.
|
|
|
770
770
|
|
|
771
771
|
### ensureConnection
|
|
772
772
|
|
|
773
|
-
`(network: import("
|
|
773
|
+
`(network: import("src/architecture/network").default, fromNode: import("src/architecture/node").default, toNode: import("src/architecture/node").default) => import("src/architecture/connection").default | undefined`
|
|
774
774
|
|
|
775
775
|
Ensures a connection exists and returns it.
|
|
776
776
|
|
|
@@ -783,7 +783,7 @@ Returns: Existing or created connection.
|
|
|
783
783
|
|
|
784
784
|
### ensureSeedForwardConnectionWhenEmpty
|
|
785
785
|
|
|
786
|
-
`(network: import("
|
|
786
|
+
`(network: import("src/architecture/network").default) => boolean`
|
|
787
787
|
|
|
788
788
|
Ensures a seed input->output connection exists when connection list is empty.
|
|
789
789
|
|
|
@@ -794,7 +794,7 @@ Returns: True when mutation may continue.
|
|
|
794
794
|
|
|
795
795
|
### expandConnectionWithRecurrentBlock
|
|
796
796
|
|
|
797
|
-
`(network: import("
|
|
797
|
+
`(network: import("src/architecture/network").default, connectionToExpand: import("src/architecture/connection").default, blockType: "lstm" | "gru") => void`
|
|
798
798
|
|
|
799
799
|
Replaces one connection with a minimal recurrent block.
|
|
800
800
|
|
|
@@ -807,7 +807,7 @@ Returns: Nothing.
|
|
|
807
807
|
|
|
808
808
|
### findConnection
|
|
809
809
|
|
|
810
|
-
`(network: import("
|
|
810
|
+
`(network: import("src/architecture/network").default, fromNode: import("src/architecture/node").default, toNode: import("src/architecture/node").default) => import("src/architecture/connection").default | undefined`
|
|
811
811
|
|
|
812
812
|
Gets a connection between two nodes when it exists.
|
|
813
813
|
|
|
@@ -820,7 +820,7 @@ Returns: Matching connection or undefined.
|
|
|
820
820
|
|
|
821
821
|
### findFirstNodeByType
|
|
822
822
|
|
|
823
|
-
`(network: import("
|
|
823
|
+
`(network: import("src/architecture/network").default, nodeType: string) => import("src/architecture/node").default | undefined`
|
|
824
824
|
|
|
825
825
|
Returns the first node by type.
|
|
826
826
|
|
|
@@ -832,7 +832,7 @@ Returns: Matching node or undefined.
|
|
|
832
832
|
|
|
833
833
|
### hasRedundantEndpoints
|
|
834
834
|
|
|
835
|
-
`(candidateConnection: import("
|
|
835
|
+
`(candidateConnection: import("src/architecture/connection").default) => boolean`
|
|
836
836
|
|
|
837
837
|
Checks whether both endpoints maintain at least one redundant edge.
|
|
838
838
|
|
|
@@ -843,7 +843,7 @@ Returns: True when endpoint redundancy exists.
|
|
|
843
843
|
|
|
844
844
|
### initializeDeterministicChain
|
|
845
845
|
|
|
846
|
-
`(network: import("
|
|
846
|
+
`(network: import("src/architecture/network").default, mutationProps: import("src/architecture/network/network.types").NetworkMutationProps, inputNode: import("src/architecture/node").default, outputNode: import("src/architecture/node").default) => void`
|
|
847
847
|
|
|
848
848
|
Initializes deterministic chain storage and seed edge.
|
|
849
849
|
|
|
@@ -857,7 +857,7 @@ Returns: Nothing.
|
|
|
857
857
|
|
|
858
858
|
### insertNodeBeforeOutputTail
|
|
859
859
|
|
|
860
|
-
`(network: import("
|
|
860
|
+
`(network: import("src/architecture/network").default, nodeToInsert: import("src/architecture/node").default, targetNode: import("src/architecture/node").default, mutationProps: import("src/architecture/network/network.types").NetworkMutationProps) => void`
|
|
861
861
|
|
|
862
862
|
Inserts a node before output tail while preserving output block ordering.
|
|
863
863
|
|
|
@@ -871,7 +871,7 @@ Returns: Nothing.
|
|
|
871
871
|
|
|
872
872
|
### isBackwardCandidateTargetAvailable
|
|
873
873
|
|
|
874
|
-
`(laterNode: import("
|
|
874
|
+
`(laterNode: import("src/architecture/node").default, earlierNode: import("src/architecture/node").default) => boolean`
|
|
875
875
|
|
|
876
876
|
Checks whether a backward candidate target is not already projected.
|
|
877
877
|
|
|
@@ -883,7 +883,7 @@ Returns: True when connection may be added.
|
|
|
883
883
|
|
|
884
884
|
### isBackwardDirectionalContext
|
|
885
885
|
|
|
886
|
-
`(directionContext: import("
|
|
886
|
+
`(directionContext: import("src/architecture/network/network.types").DirectionalConnectionContext) => boolean`
|
|
887
887
|
|
|
888
888
|
Checks whether a directional context represents a backward edge.
|
|
889
889
|
|
|
@@ -894,7 +894,7 @@ Returns: True when backward.
|
|
|
894
894
|
|
|
895
895
|
### isForwardCandidateTargetAvailable
|
|
896
896
|
|
|
897
|
-
`(sourceNode: import("
|
|
897
|
+
`(sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => boolean`
|
|
898
898
|
|
|
899
899
|
Checks whether a forward candidate target is not already projected.
|
|
900
900
|
|
|
@@ -906,7 +906,7 @@ Returns: True when connection may be added.
|
|
|
906
906
|
|
|
907
907
|
### isForwardConnectionStructurallyRemovable
|
|
908
908
|
|
|
909
|
-
`(network: import("
|
|
909
|
+
`(network: import("src/architecture/network").default, candidateConnection: import("src/architecture/connection").default) => boolean`
|
|
910
910
|
|
|
911
911
|
Checks structural preconditions for removable forward connections.
|
|
912
912
|
|
|
@@ -918,7 +918,7 @@ Returns: True when the connection is a forward edge with redundant endpoints.
|
|
|
918
918
|
|
|
919
919
|
### isForwardDirectionalContext
|
|
920
920
|
|
|
921
|
-
`(directionContext: import("
|
|
921
|
+
`(directionContext: import("src/architecture/network/network.types").DirectionalConnectionContext) => boolean`
|
|
922
922
|
|
|
923
923
|
Checks whether a directional context represents a forward edge.
|
|
924
924
|
|
|
@@ -929,7 +929,7 @@ Returns: True when forward.
|
|
|
929
929
|
|
|
930
930
|
### isNodeWithoutSelfLoop
|
|
931
931
|
|
|
932
|
-
`(candidateNode: import("
|
|
932
|
+
`(candidateNode: import("src/architecture/node").default) => boolean`
|
|
933
933
|
|
|
934
934
|
Checks whether a node currently has no self-loop connections.
|
|
935
935
|
|
|
@@ -940,7 +940,7 @@ Returns: True when the node has no self-loop.
|
|
|
940
940
|
|
|
941
941
|
### isRemovableBackwardConnection
|
|
942
942
|
|
|
943
|
-
`(network: import("
|
|
943
|
+
`(network: import("src/architecture/network").default, candidateConnection: import("src/architecture/connection").default) => boolean`
|
|
944
944
|
|
|
945
945
|
Evaluates whether a backward connection is safe to remove.
|
|
946
946
|
|
|
@@ -952,7 +952,7 @@ Returns: True when removable.
|
|
|
952
952
|
|
|
953
953
|
### isRemovableForwardConnection
|
|
954
954
|
|
|
955
|
-
`(network: import("
|
|
955
|
+
`(network: import("src/architecture/network").default, candidateConnection: import("src/architecture/connection").default) => boolean`
|
|
956
956
|
|
|
957
957
|
Evaluates whether a forward connection is safe to remove.
|
|
958
958
|
|
|
@@ -964,7 +964,7 @@ Returns: True when removable.
|
|
|
964
964
|
|
|
965
965
|
### isTargetLayerPeer
|
|
966
966
|
|
|
967
|
-
`(candidateNode: import("
|
|
967
|
+
`(candidateNode: import("src/architecture/node").default, candidateNodeIndex: number, peerContext: import("src/architecture/network/network.types").TargetLayerPeerContext) => boolean`
|
|
968
968
|
|
|
969
969
|
Checks whether candidate node belongs to the target peer-layer set.
|
|
970
970
|
|
|
@@ -977,7 +977,7 @@ Returns: True when candidate is an eligible peer.
|
|
|
977
977
|
|
|
978
978
|
### isTargetLayerPeerTypeMatch
|
|
979
979
|
|
|
980
|
-
`(candidateNode: import("
|
|
980
|
+
`(candidateNode: import("src/architecture/node").default, peerContext: import("src/architecture/network/network.types").TargetLayerPeerContext) => boolean`
|
|
981
981
|
|
|
982
982
|
Checks whether node type matches the target-layer peer type.
|
|
983
983
|
|
|
@@ -989,7 +989,7 @@ Returns: True when type matches.
|
|
|
989
989
|
|
|
990
990
|
### isTargetLayerPeerWithinDistance
|
|
991
991
|
|
|
992
|
-
`(candidateNodeIndex: number, peerContext: import("
|
|
992
|
+
`(candidateNodeIndex: number, peerContext: import("src/architecture/network/network.types").TargetLayerPeerContext) => boolean`
|
|
993
993
|
|
|
994
994
|
Checks whether candidate index lies within allowed peer distance.
|
|
995
995
|
|
|
@@ -1001,7 +1001,7 @@ Returns: True when within distance.
|
|
|
1001
1001
|
|
|
1002
1002
|
### isUngatedConnection
|
|
1003
1003
|
|
|
1004
|
-
`(candidateConnection: import("
|
|
1004
|
+
`(candidateConnection: import("src/architecture/connection").default) => boolean`
|
|
1005
1005
|
|
|
1006
1006
|
Checks whether a connection has no gater attached.
|
|
1007
1007
|
|
|
@@ -1012,7 +1012,7 @@ Returns: True when ungated.
|
|
|
1012
1012
|
|
|
1013
1013
|
### markTopoDirtyIfAcyclic
|
|
1014
1014
|
|
|
1015
|
-
`(mutationProps: import("
|
|
1015
|
+
`(mutationProps: import("src/architecture/network/network.types").NetworkMutationProps) => void`
|
|
1016
1016
|
|
|
1017
1017
|
Marks topology caches dirty when acyclic mode is enforced.
|
|
1018
1018
|
|
|
@@ -1023,7 +1023,7 @@ Returns: Nothing.
|
|
|
1023
1023
|
|
|
1024
1024
|
### modActivation
|
|
1025
1025
|
|
|
1026
|
-
`(method: import("
|
|
1026
|
+
`(method: import("src/architecture/network/network.types").MutationMethod | undefined) => void`
|
|
1027
1027
|
|
|
1028
1028
|
Mutates activation function on one random non-input node.
|
|
1029
1029
|
|
|
@@ -1037,7 +1037,7 @@ Returns: Nothing.
|
|
|
1037
1037
|
|
|
1038
1038
|
### modBias
|
|
1039
1039
|
|
|
1040
|
-
`(method: import("
|
|
1040
|
+
`(method: import("src/architecture/network/network.types").MutationMethod | undefined) => void`
|
|
1041
1041
|
|
|
1042
1042
|
Mutates bias parameters on one random non-input node.
|
|
1043
1043
|
|
|
@@ -1051,7 +1051,7 @@ Returns: Nothing.
|
|
|
1051
1051
|
|
|
1052
1052
|
### modWeight
|
|
1053
1053
|
|
|
1054
|
-
`(method: import("
|
|
1054
|
+
`(method: import("src/architecture/network/network.types").MutationMethod | undefined) => void`
|
|
1055
1055
|
|
|
1056
1056
|
Perturbs one connection weight using a uniform delta sampled from configured bounds.
|
|
1057
1057
|
|
|
@@ -1065,7 +1065,7 @@ Returns: Nothing.
|
|
|
1065
1065
|
|
|
1066
1066
|
### pickDistinctNodePair
|
|
1067
1067
|
|
|
1068
|
-
`(swappableNodes: import("
|
|
1068
|
+
`(swappableNodes: import("src/architecture/node").default[], randomValue: () => number) => import("src/architecture/network/network.types").DistinctNodePair | undefined`
|
|
1069
1069
|
|
|
1070
1070
|
Picks two distinct nodes from a candidate set.
|
|
1071
1071
|
|
|
@@ -1077,7 +1077,7 @@ Returns: Distinct pair or undefined.
|
|
|
1077
1077
|
|
|
1078
1078
|
### pickDistinctRandomNode
|
|
1079
1079
|
|
|
1080
|
-
`(nodeCandidates: import("
|
|
1080
|
+
`(nodeCandidates: import("src/architecture/node").default[], excludedNode: import("src/architecture/node").default, randomValue: () => number) => import("src/architecture/node").default | undefined`
|
|
1081
1081
|
|
|
1082
1082
|
Picks a random node distinct from a given reference.
|
|
1083
1083
|
|
|
@@ -1102,7 +1102,7 @@ Returns: Random entry or undefined when empty.
|
|
|
1102
1102
|
|
|
1103
1103
|
### pickRandomNonInputNode
|
|
1104
1104
|
|
|
1105
|
-
`(network: import("
|
|
1105
|
+
`(network: import("src/architecture/network").default, excludeOutputNodes: boolean, randomValue: () => number) => import("src/architecture/node").default | undefined`
|
|
1106
1106
|
|
|
1107
1107
|
Selects a random mutable non-input node.
|
|
1108
1108
|
|
|
@@ -1115,7 +1115,7 @@ Returns: Selected mutable node.
|
|
|
1115
1115
|
|
|
1116
1116
|
### pruneDeterministicChainExtraEdges
|
|
1117
1117
|
|
|
1118
|
-
`(network: import("
|
|
1118
|
+
`(network: import("src/architecture/network").default, deterministicChain: import("src/architecture/node").default[], outputNode: import("src/architecture/node").default) => void`
|
|
1119
1119
|
|
|
1120
1120
|
Prunes side edges from chain nodes to preserve linear deterministic depth.
|
|
1121
1121
|
|
|
@@ -1128,7 +1128,7 @@ Returns: Nothing.
|
|
|
1128
1128
|
|
|
1129
1129
|
### reconnectThroughRecurrentLayer
|
|
1130
1130
|
|
|
1131
|
-
`(network: import("
|
|
1131
|
+
`(network: import("src/architecture/network").default, connectionToExpand: import("src/architecture/connection").default, recurrentLayer: import("src/architecture/network/network.types").RecurrentLayerShape) => import("src/architecture/connection").default | undefined`
|
|
1132
1132
|
|
|
1133
1133
|
Reconnects a source/target pair through a recurrent layer.
|
|
1134
1134
|
|
|
@@ -1141,7 +1141,7 @@ Returns: Latest newly created connection or undefined.
|
|
|
1141
1141
|
|
|
1142
1142
|
### reinitializeConnectionGroupWeights
|
|
1143
1143
|
|
|
1144
|
-
`(connections: import("
|
|
1144
|
+
`(connections: import("src/architecture/connection").default[], reinitContext: import("src/architecture/network/network.types").ConnectionGroupReinitContext) => void`
|
|
1145
1145
|
|
|
1146
1146
|
Reinitializes all weights in a connection group.
|
|
1147
1147
|
|
|
@@ -1155,7 +1155,7 @@ Returns: Nothing.
|
|
|
1155
1155
|
|
|
1156
1156
|
### reinitWeight
|
|
1157
1157
|
|
|
1158
|
-
`(method: import("
|
|
1158
|
+
`(method: import("src/architecture/network/network.types").MutationMethod | undefined) => void`
|
|
1159
1159
|
|
|
1160
1160
|
Reinitializes incoming, outgoing, and self-connection weights for one target node.
|
|
1161
1161
|
|
|
@@ -1169,7 +1169,7 @@ Returns: Nothing.
|
|
|
1169
1169
|
|
|
1170
1170
|
### removeHiddenNodeAndApplyStabilityNudge
|
|
1171
1171
|
|
|
1172
|
-
`(network: import("
|
|
1172
|
+
`(network: import("src/architecture/network").default, hiddenNode: import("src/architecture/node").default) => void`
|
|
1173
1173
|
|
|
1174
1174
|
Removes selected hidden node and applies stability nudge.
|
|
1175
1175
|
|
|
@@ -1181,7 +1181,7 @@ Returns: Nothing.
|
|
|
1181
1181
|
|
|
1182
1182
|
### resolveDeterministicChainMutationContext
|
|
1183
1183
|
|
|
1184
|
-
`(network: import("
|
|
1184
|
+
`(network: import("src/architecture/network").default, mutationProps: import("src/architecture/network/network.types").NetworkMutationProps) => import("src/architecture/network/network.types").DeterministicChainMutationContext | undefined`
|
|
1185
1185
|
|
|
1186
1186
|
Resolves all deterministic add-node prerequisites into one context object.
|
|
1187
1187
|
|
|
@@ -1193,7 +1193,7 @@ Returns: Deterministic context or undefined when any prerequisite fails.
|
|
|
1193
1193
|
|
|
1194
1194
|
### resolveDistinctPairWithKnownFirstNode
|
|
1195
1195
|
|
|
1196
|
-
`(swappableNodes: import("
|
|
1196
|
+
`(swappableNodes: import("src/architecture/node").default[], firstNode: import("src/architecture/node").default, randomValue: () => number) => import("src/architecture/network/network.types").DistinctNodePair | undefined`
|
|
1197
1197
|
|
|
1198
1198
|
Resolves a distinct pair when first node is already known.
|
|
1199
1199
|
|
|
@@ -1206,7 +1206,7 @@ Returns: Distinct pair or undefined.
|
|
|
1206
1206
|
|
|
1207
1207
|
### resolveExpectedChainTarget
|
|
1208
1208
|
|
|
1209
|
-
`(deterministicChain: import("
|
|
1209
|
+
`(deterministicChain: import("src/architecture/node").default[], chainNodeIndex: number, outputNode: import("src/architecture/node").default) => import("src/architecture/node").default`
|
|
1210
1210
|
|
|
1211
1211
|
Resolves the expected outgoing target for a chain node position.
|
|
1212
1212
|
|
|
@@ -1219,7 +1219,7 @@ Returns: Expected successor target.
|
|
|
1219
1219
|
|
|
1220
1220
|
### resolveInputOutputEndpoints
|
|
1221
1221
|
|
|
1222
|
-
`(network: import("
|
|
1222
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").InputOutputEndpoints | undefined`
|
|
1223
1223
|
|
|
1224
1224
|
Resolves input/output endpoints required for seed and deterministic flows.
|
|
1225
1225
|
|
|
@@ -1230,7 +1230,7 @@ Returns: Endpoint nodes or undefined when missing.
|
|
|
1230
1230
|
|
|
1231
1231
|
### resolveMethodObject
|
|
1232
1232
|
|
|
1233
|
-
`(method: import("
|
|
1233
|
+
`(method: import("src/architecture/network/network.types").MutationMethod | undefined) => { [key: string]: unknown; name?: string | undefined; type?: string | undefined; identity?: string | undefined; max?: number | undefined; min?: number | undefined; mutateOutput?: boolean | undefined; }`
|
|
1234
1234
|
|
|
1235
1235
|
Extracts method-object form when provided.
|
|
1236
1236
|
|
|
@@ -1241,7 +1241,7 @@ Returns: Method object view.
|
|
|
1241
1241
|
|
|
1242
1242
|
### resolveSelectedBackwardConnectionPair
|
|
1243
1243
|
|
|
1244
|
-
`(network: import("
|
|
1244
|
+
`(network: import("src/architecture/network").default, randomValue: () => number) => import("src/architecture/network/network.types").NodePair | undefined`
|
|
1245
1245
|
|
|
1246
1246
|
Resolves random selected backward connection pair.
|
|
1247
1247
|
|
|
@@ -1253,7 +1253,7 @@ Returns: Selected source/target pair.
|
|
|
1253
1253
|
|
|
1254
1254
|
### resolveSelectedForwardConnectionPair
|
|
1255
1255
|
|
|
1256
|
-
`(network: import("
|
|
1256
|
+
`(network: import("src/architecture/network").default, randomValue: () => number) => import("src/architecture/network/network.types").NodePair | undefined`
|
|
1257
1257
|
|
|
1258
1258
|
Resolves random selected forward connection pair.
|
|
1259
1259
|
|
|
@@ -1265,7 +1265,7 @@ Returns: Selected source/target pair.
|
|
|
1265
1265
|
|
|
1266
1266
|
### resolveSelfConnectionTargetNode
|
|
1267
1267
|
|
|
1268
|
-
`(network: import("
|
|
1268
|
+
`(network: import("src/architecture/network").default, randomValue: () => number) => import("src/architecture/node").default | undefined`
|
|
1269
1269
|
|
|
1270
1270
|
Resolves random node eligible for self-connection creation.
|
|
1271
1271
|
|
|
@@ -1290,7 +1290,7 @@ Returns: Sampled value.
|
|
|
1290
1290
|
|
|
1291
1291
|
### sampleUniformFromContext
|
|
1292
1292
|
|
|
1293
|
-
`(samplingContext: import("
|
|
1293
|
+
`(samplingContext: import("src/architecture/network/network.types").WeightSamplingRangeContext) => number`
|
|
1294
1294
|
|
|
1295
1295
|
Samples one weight using a prebuilt range context.
|
|
1296
1296
|
|
|
@@ -1301,7 +1301,7 @@ Returns: Sampled weight.
|
|
|
1301
1301
|
|
|
1302
1302
|
### selectHiddenNodeForRemoval
|
|
1303
1303
|
|
|
1304
|
-
`(network: import("
|
|
1304
|
+
`(network: import("src/architecture/network").default, hiddenNodes: import("src/architecture/node").default[]) => import("src/architecture/node").default | undefined`
|
|
1305
1305
|
|
|
1306
1306
|
Selects a hidden node candidate for SUB_NODE mutation.
|
|
1307
1307
|
|
|
@@ -1313,7 +1313,7 @@ Returns: Selected hidden node.
|
|
|
1313
1313
|
|
|
1314
1314
|
### splitConnectionThroughHiddenNode
|
|
1315
1315
|
|
|
1316
|
-
`(network: import("
|
|
1316
|
+
`(network: import("src/architecture/network").default, mutationProps: import("src/architecture/network/network.types").NetworkMutationProps, connectionToSplit: import("src/architecture/connection").default) => import("src/architecture/network/network.types").ConnectionSplitResult`
|
|
1317
1317
|
|
|
1318
1318
|
Replaces one connection by inserting a hidden node and reconnecting edges.
|
|
1319
1319
|
|
|
@@ -1386,7 +1386,7 @@ Returns: Nothing.
|
|
|
1386
1386
|
|
|
1387
1387
|
### swapNodeBiasAndSquash
|
|
1388
1388
|
|
|
1389
|
-
`(firstNode: import("
|
|
1389
|
+
`(firstNode: import("src/architecture/node").default, secondNode: import("src/architecture/node").default) => void`
|
|
1390
1390
|
|
|
1391
1391
|
Swaps bias and squash values between two nodes.
|
|
1392
1392
|
|
|
@@ -1398,7 +1398,7 @@ Returns: Nothing.
|
|
|
1398
1398
|
|
|
1399
1399
|
### swapNodes
|
|
1400
1400
|
|
|
1401
|
-
`(method: import("
|
|
1401
|
+
`(method: import("src/architecture/network/network.types").MutationMethod | undefined) => void`
|
|
1402
1402
|
|
|
1403
1403
|
Swaps bias and activation squash functions between two distinct mutable nodes.
|
|
1404
1404
|
|
|
@@ -1413,7 +1413,7 @@ Returns: Nothing.
|
|
|
1413
1413
|
|
|
1414
1414
|
### tryDisconnectConnection
|
|
1415
1415
|
|
|
1416
|
-
`(network: import("
|
|
1416
|
+
`(network: import("src/architecture/network").default, connection: import("src/architecture/connection").default) => void`
|
|
1417
1417
|
|
|
1418
1418
|
Disconnects a connection pair while suppressing errors.
|
|
1419
1419
|
|
|
@@ -1425,7 +1425,7 @@ Returns: Nothing.
|
|
|
1425
1425
|
|
|
1426
1426
|
### tryGateLatestConnection
|
|
1427
1427
|
|
|
1428
|
-
`(network: import("
|
|
1428
|
+
`(network: import("src/architecture/network").default, previousGater: import("src/architecture/node").default | null, latestConnection: import("src/architecture/connection").default | undefined) => void`
|
|
1429
1429
|
|
|
1430
1430
|
Gates the latest connection when both previous gater and target exist.
|
|
1431
1431
|
|
|
@@ -1438,7 +1438,7 @@ Returns: Nothing.
|
|
|
1438
1438
|
|
|
1439
1439
|
### tryReassignGateAfterSplit
|
|
1440
1440
|
|
|
1441
|
-
`(network: import("
|
|
1441
|
+
`(network: import("src/architecture/network").default, randomValue: () => number, splitResult: import("src/architecture/network/network.types").ConnectionSplitResult) => void`
|
|
1442
1442
|
|
|
1443
1443
|
Reassigns prior gater to one of the new split connections when possible.
|
|
1444
1444
|
|
|
@@ -1462,7 +1462,7 @@ Returns: Nothing.
|
|
|
1462
1462
|
|
|
1463
1463
|
### wouldDisconnectTargetPeerLayerGroup
|
|
1464
1464
|
|
|
1465
|
-
`(network: import("
|
|
1465
|
+
`(network: import("src/architecture/network").default, candidateConnection: import("src/architecture/connection").default) => boolean`
|
|
1466
1466
|
|
|
1467
1467
|
Determines whether removal would disconnect a target peer-layer group.
|
|
1468
1468
|
|