@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
|
@@ -131,7 +131,7 @@ These fields are the minimal node state required to round-trip compact and JSON
|
|
|
131
131
|
|
|
132
132
|
### applyHydratedArchitectureDescriptor
|
|
133
133
|
|
|
134
|
-
`(network: import("
|
|
134
|
+
`(network: import("src/architecture/network").default, architectureDescriptor: import("src/architecture/network/network.types").NetworkArchitectureDescriptor | undefined) => void`
|
|
135
135
|
|
|
136
136
|
Applies hydrated architecture metadata to runtime network when shape is valid.
|
|
137
137
|
|
|
@@ -143,15 +143,15 @@ Returns: Nothing.
|
|
|
143
143
|
|
|
144
144
|
### deserialize
|
|
145
145
|
|
|
146
|
-
`(data: import("
|
|
146
|
+
`(data: import("src/architecture/network/network.types").CompactSerializedNetworkTuple, inputSize: number | undefined, outputSize: number | undefined) => import("src/architecture/network").default`
|
|
147
147
|
|
|
148
148
|
### fromJSONImpl
|
|
149
149
|
|
|
150
|
-
`(json: import("
|
|
150
|
+
`(json: import("src/architecture/network/network.types").NetworkJSON) => import("src/architecture/network").default`
|
|
151
151
|
|
|
152
152
|
### isArchitectureDescriptorShapeValid
|
|
153
153
|
|
|
154
|
-
`(architectureDescriptor: import("
|
|
154
|
+
`(architectureDescriptor: import("src/architecture/network/network.types").NetworkArchitectureDescriptor | undefined) => boolean`
|
|
155
155
|
|
|
156
156
|
Parameters:
|
|
157
157
|
- `architectureDescriptor` - - Optional descriptor candidate.
|
|
@@ -160,7 +160,7 @@ Returns: True when minimal descriptor shape is valid.
|
|
|
160
160
|
|
|
161
161
|
### serialize
|
|
162
162
|
|
|
163
|
-
`() => import("
|
|
163
|
+
`() => import("src/architecture/network/network.types").CompactSerializedNetworkTuple`
|
|
164
164
|
|
|
165
165
|
Serializes a network instance into the compact tuple format.
|
|
166
166
|
|
|
@@ -180,7 +180,7 @@ Endpoints are canonical node indices, which keeps payloads deterministic and lan
|
|
|
180
180
|
|
|
181
181
|
### toJSONImpl
|
|
182
182
|
|
|
183
|
-
`() => import("
|
|
183
|
+
`() => import("src/architecture/network/network.types").NetworkJSON`
|
|
184
184
|
|
|
185
185
|
Serializes a network instance into the verbose JSON format.
|
|
186
186
|
|
|
@@ -205,7 +205,7 @@ bits4+ reserved.
|
|
|
205
205
|
|
|
206
206
|
#### acquire
|
|
207
207
|
|
|
208
|
-
`(from: import("
|
|
208
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default, weight: number | undefined) => import("src/architecture/connection").default`
|
|
209
209
|
|
|
210
210
|
Acquire a `Connection` from the pool (or construct new). Fields are fully reset & given
|
|
211
211
|
a fresh sequential `innovation` id. Prefer this in evolutionary algorithms that mutate
|
|
@@ -306,7 +306,7 @@ Last applied delta weight (used by classic momentum).
|
|
|
306
306
|
|
|
307
307
|
#### release
|
|
308
308
|
|
|
309
|
-
`(conn: import("
|
|
309
|
+
`(conn: import("src/architecture/connection").default) => void`
|
|
310
310
|
|
|
311
311
|
Return a `Connection` to the internal pool for later reuse. Do NOT use the instance again
|
|
312
312
|
afterward unless re-acquired (treat as surrendered). Optimizer / trace fields are not
|
|
@@ -362,7 +362,7 @@ Extended trace structure for modulatory / eligibility propagation algorithms. Pa
|
|
|
362
362
|
|
|
363
363
|
### appendJsonForwardConnections
|
|
364
364
|
|
|
365
|
-
`(networkInternals: import("
|
|
365
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals, networkJson: import("src/architecture/network/network.types").NetworkJSON) => void`
|
|
366
366
|
|
|
367
367
|
Appends JSON entries for forward connections.
|
|
368
368
|
|
|
@@ -376,7 +376,7 @@ Returns: Nothing.
|
|
|
376
376
|
|
|
377
377
|
### appendJsonNodesAndSelfConnections
|
|
378
378
|
|
|
379
|
-
`(networkInternals: import("
|
|
379
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals, networkJson: import("src/architecture/network/network.types").NetworkJSON) => void`
|
|
380
380
|
|
|
381
381
|
Appends JSON node entries and optional self-connections.
|
|
382
382
|
|
|
@@ -391,7 +391,7 @@ Returns: Nothing.
|
|
|
391
391
|
|
|
392
392
|
### appendJsonSelfConnectionWhenPresent
|
|
393
393
|
|
|
394
|
-
`(nodeInternals: import("
|
|
394
|
+
`(nodeInternals: import("src/architecture/network/network.types").SerializeNodeInternals, nodeIndex: number, networkJson: import("src/architecture/network/network.types").NetworkJSON) => void`
|
|
395
395
|
|
|
396
396
|
Appends JSON self-connection when node has one.
|
|
397
397
|
|
|
@@ -404,7 +404,7 @@ Returns: Nothing.
|
|
|
404
404
|
|
|
405
405
|
### assignJsonEnabledFlagWhenProvided
|
|
406
406
|
|
|
407
|
-
`(createdConnection: import("
|
|
407
|
+
`(createdConnection: import("src/architecture/connection").default | undefined, enabled: boolean) => void`
|
|
408
408
|
|
|
409
409
|
Assigns enabled flag when value is provided.
|
|
410
410
|
|
|
@@ -416,7 +416,7 @@ Returns: Nothing.
|
|
|
416
416
|
|
|
417
417
|
### assignJsonGaterWhenValid
|
|
418
418
|
|
|
419
|
-
`(networkInternals: import("
|
|
419
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals, gaterIndex: number | null, createdConnection: import("src/architecture/connection").default | undefined) => void`
|
|
420
420
|
|
|
421
421
|
Assigns JSON gater when connection and gater index are valid.
|
|
422
422
|
|
|
@@ -429,7 +429,7 @@ Returns: Nothing.
|
|
|
429
429
|
|
|
430
430
|
### createConnection
|
|
431
431
|
|
|
432
|
-
`(networkInternals: import("
|
|
432
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals, sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default, weight: number) => import("src/architecture/connection").default | undefined`
|
|
433
433
|
|
|
434
434
|
Creates one connection and returns first created instance.
|
|
435
435
|
|
|
@@ -443,7 +443,7 @@ Returns: Created connection or undefined.
|
|
|
443
443
|
|
|
444
444
|
### createEmptyNetworkJson
|
|
445
445
|
|
|
446
|
-
`(networkInternals: import("
|
|
446
|
+
`(networkInternals: import("src/architecture/network/network.types").NetworkInternalsWithDropout) => import("src/architecture/network/network.types").NetworkJSON`
|
|
447
447
|
|
|
448
448
|
Creates an empty verbose JSON shell from runtime internals.
|
|
449
449
|
|
|
@@ -457,7 +457,7 @@ Returns: Empty JSON shell with `formatVersion` and scalar metadata initialized.
|
|
|
457
457
|
|
|
458
458
|
### createJsonConnection
|
|
459
459
|
|
|
460
|
-
`(from: number, to: number, weight: number, gater: number | null, enabled: boolean) => import("
|
|
460
|
+
`(from: number, to: number, weight: number, gater: number | null, enabled: boolean) => import("src/architecture/network/network.types").NetworkJSONConnection`
|
|
461
461
|
|
|
462
462
|
Creates one JSON connection entry.
|
|
463
463
|
|
|
@@ -472,7 +472,7 @@ Returns: JSON connection entry.
|
|
|
472
472
|
|
|
473
473
|
### createJsonNode
|
|
474
474
|
|
|
475
|
-
`(node: import("
|
|
475
|
+
`(node: import("src/architecture/node").default, nodeInternals: import("src/architecture/network/network.types").SerializeNodeInternals, nodeIndex: number) => import("src/architecture/network/network.types").NetworkJSONNode`
|
|
476
476
|
|
|
477
477
|
Creates one JSON node entry.
|
|
478
478
|
|
|
@@ -485,7 +485,7 @@ Returns: JSON node entry.
|
|
|
485
485
|
|
|
486
486
|
### createNodeWithType
|
|
487
487
|
|
|
488
|
-
`(nodeType: string) => import("
|
|
488
|
+
`(nodeType: string) => import("src/architecture/node").default`
|
|
489
489
|
|
|
490
490
|
Creates one node with provided type.
|
|
491
491
|
|
|
@@ -496,7 +496,7 @@ Returns: New node.
|
|
|
496
496
|
|
|
497
497
|
### hydrateNodeFromJsonEntry
|
|
498
498
|
|
|
499
|
-
`(rebuiltNode: import("
|
|
499
|
+
`(rebuiltNode: import("src/architecture/node").default, nodeJsonEntry: import("src/architecture/network/network.types").NetworkJSONNode, nodeIndex: number) => void`
|
|
500
500
|
|
|
501
501
|
Hydrates one node from JSON node entry.
|
|
502
502
|
|
|
@@ -509,7 +509,7 @@ Returns: Nothing.
|
|
|
509
509
|
|
|
510
510
|
### isConnectionEnabled
|
|
511
511
|
|
|
512
|
-
`(connectionInstance: import("
|
|
512
|
+
`(connectionInstance: import("src/architecture/connection").default) => boolean`
|
|
513
513
|
|
|
514
514
|
Resolves enabled status from optional connection flag.
|
|
515
515
|
|
|
@@ -520,7 +520,7 @@ Returns: True when connection is enabled.
|
|
|
520
520
|
|
|
521
521
|
### isJsonConnectionInNodeBounds
|
|
522
522
|
|
|
523
|
-
`(nodes: import("
|
|
523
|
+
`(nodes: import("src/architecture/node").default[], connectionJsonEntry: import("src/architecture/network/network.types").NetworkJSONConnection) => boolean`
|
|
524
524
|
|
|
525
525
|
Checks JSON connection indices against node list bounds.
|
|
526
526
|
|
|
@@ -532,7 +532,7 @@ Returns: True when both indices are valid.
|
|
|
532
532
|
|
|
533
533
|
### isJsonConnectionShapeValid
|
|
534
534
|
|
|
535
|
-
`(connectionJsonEntry: import("
|
|
535
|
+
`(connectionJsonEntry: import("src/architecture/network/network.types").NetworkJSONConnection) => boolean`
|
|
536
536
|
|
|
537
537
|
Checks that JSON connection has numeric endpoint fields.
|
|
538
538
|
|
|
@@ -543,7 +543,7 @@ Returns: True when endpoint fields are numbers.
|
|
|
543
543
|
|
|
544
544
|
### rebuildConnectionsFromJsonPayload
|
|
545
545
|
|
|
546
|
-
`(jsonConnectionContext: import("
|
|
546
|
+
`(jsonConnectionContext: import("src/architecture/network/network.types").JsonConnectionRebuildContext) => void`
|
|
547
547
|
|
|
548
548
|
Rebuilds runtime connections from verbose JSON entries.
|
|
549
549
|
|
|
@@ -556,7 +556,7 @@ Returns: Nothing.
|
|
|
556
556
|
|
|
557
557
|
### rebuildNodesFromJsonPayload
|
|
558
558
|
|
|
559
|
-
`(jsonNodeContext: import("
|
|
559
|
+
`(jsonNodeContext: import("src/architecture/network/network.types").JsonNodeRebuildContext) => void`
|
|
560
560
|
|
|
561
561
|
Rebuilds runtime nodes from verbose JSON entries.
|
|
562
562
|
|
|
@@ -567,7 +567,7 @@ Returns: Nothing.
|
|
|
567
567
|
|
|
568
568
|
### rebuildOneJsonConnection
|
|
569
569
|
|
|
570
|
-
`(networkInternals: import("
|
|
570
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals, connectionJsonEntry: import("src/architecture/network/network.types").NetworkJSONConnection) => void`
|
|
571
571
|
|
|
572
572
|
Rebuilds one verbose JSON connection entry.
|
|
573
573
|
|
|
@@ -590,7 +590,7 @@ Returns: Effective dropout.
|
|
|
590
590
|
|
|
591
591
|
### resolveGaterIndex
|
|
592
592
|
|
|
593
|
-
`(gaterNode: import("
|
|
593
|
+
`(gaterNode: import("src/architecture/node").default | null) => number | null`
|
|
594
594
|
|
|
595
595
|
Resolves gater node index from gater reference.
|
|
596
596
|
|
|
@@ -601,7 +601,7 @@ Returns: Gater index or null.
|
|
|
601
601
|
|
|
602
602
|
### validateNetworkJsonOrThrow
|
|
603
603
|
|
|
604
|
-
`(json: import("
|
|
604
|
+
`(json: import("src/architecture/network/network.types").NetworkJSON) => void`
|
|
605
605
|
|
|
606
606
|
Validates the verbose JSON payload root shape.
|
|
607
607
|
|
|
@@ -625,7 +625,7 @@ Returns: Nothing.
|
|
|
625
625
|
|
|
626
626
|
### assignCompactGaterWhenValid
|
|
627
627
|
|
|
628
|
-
`(networkInternals: import("
|
|
628
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals, gaterIndex: number | null, createdConnection: import("src/architecture/connection").default | undefined) => void`
|
|
629
629
|
|
|
630
630
|
Assigns compact gater when both connection and gater index are valid.
|
|
631
631
|
|
|
@@ -638,7 +638,7 @@ Returns: Nothing.
|
|
|
638
638
|
|
|
639
639
|
### collectAllConnections
|
|
640
640
|
|
|
641
|
-
`(networkInternals: import("
|
|
641
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals) => import("src/architecture/connection").default[]`
|
|
642
642
|
|
|
643
643
|
Collects all runtime connections into a single list.
|
|
644
644
|
|
|
@@ -649,7 +649,7 @@ Returns: Combined connections.
|
|
|
649
649
|
|
|
650
650
|
### collectNodeActivations
|
|
651
651
|
|
|
652
|
-
`(nodes: import("
|
|
652
|
+
`(nodes: import("src/architecture/node").default[]) => number[]`
|
|
653
653
|
|
|
654
654
|
Collects node activation values in positional order.
|
|
655
655
|
|
|
@@ -660,7 +660,7 @@ Returns: Activation list aligned to node indices.
|
|
|
660
660
|
|
|
661
661
|
### collectNodeSquashKeys
|
|
662
662
|
|
|
663
|
-
`(nodes: import("
|
|
663
|
+
`(nodes: import("src/architecture/node").default[]) => string[]`
|
|
664
664
|
|
|
665
665
|
Collects node activation keys in positional order.
|
|
666
666
|
|
|
@@ -673,7 +673,7 @@ Returns: Squash-key list aligned to node indices.
|
|
|
673
673
|
|
|
674
674
|
### collectNodeStates
|
|
675
675
|
|
|
676
|
-
`(nodes: import("
|
|
676
|
+
`(nodes: import("src/architecture/node").default[]) => number[]`
|
|
677
677
|
|
|
678
678
|
Collects node state values in positional order.
|
|
679
679
|
|
|
@@ -684,7 +684,7 @@ Returns: State list aligned to node indices.
|
|
|
684
684
|
|
|
685
685
|
### collectSerializedConnections
|
|
686
686
|
|
|
687
|
-
`(networkInternals: import("
|
|
687
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals) => import("src/architecture/network/network.types").SerializedConnection[]`
|
|
688
688
|
|
|
689
689
|
Collects compact connection records from forward and self connection groups.
|
|
690
690
|
|
|
@@ -695,7 +695,7 @@ Returns: Serialized connection list.
|
|
|
695
695
|
|
|
696
696
|
### createConnection
|
|
697
697
|
|
|
698
|
-
`(networkInternals: import("
|
|
698
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals, sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default, weight: number) => import("src/architecture/connection").default | undefined`
|
|
699
699
|
|
|
700
700
|
Creates one connection and returns first created instance.
|
|
701
701
|
|
|
@@ -709,7 +709,7 @@ Returns: Created connection or undefined.
|
|
|
709
709
|
|
|
710
710
|
### createNodeWithType
|
|
711
711
|
|
|
712
|
-
`(nodeType: string) => import("
|
|
712
|
+
`(nodeType: string) => import("src/architecture/node").default`
|
|
713
713
|
|
|
714
714
|
Creates one node with provided type.
|
|
715
715
|
|
|
@@ -720,7 +720,7 @@ Returns: New node.
|
|
|
720
720
|
|
|
721
721
|
### hydrateNodeStateFromCompactPayload
|
|
722
722
|
|
|
723
|
-
`(rebuiltNode: import("
|
|
723
|
+
`(rebuiltNode: import("src/architecture/node").default, activation: number, state: number, squashName: string | undefined, nodeIndex: number) => void`
|
|
724
724
|
|
|
725
725
|
Hydrates node runtime state from compact tuple values.
|
|
726
726
|
|
|
@@ -735,7 +735,7 @@ Returns: Nothing.
|
|
|
735
735
|
|
|
736
736
|
### isSerializedConnectionInNodeBounds
|
|
737
737
|
|
|
738
|
-
`(networkInternals: import("
|
|
738
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals, serializedConnection: import("src/architecture/network/network.types").SerializedConnection) => boolean`
|
|
739
739
|
|
|
740
740
|
Checks compact connection bounds against current node list.
|
|
741
741
|
|
|
@@ -747,7 +747,7 @@ Returns: True when endpoints are valid.
|
|
|
747
747
|
|
|
748
748
|
### rebuildConnectionsFromCompactPayload
|
|
749
749
|
|
|
750
|
-
`(compactConnectionContext: import("
|
|
750
|
+
`(compactConnectionContext: import("src/architecture/network/network.types").CompactConnectionRebuildContext) => void`
|
|
751
751
|
|
|
752
752
|
Rebuilds runtime connections from compact connection records.
|
|
753
753
|
|
|
@@ -760,7 +760,7 @@ Returns: Nothing.
|
|
|
760
760
|
|
|
761
761
|
### rebuildNodesFromCompactPayload
|
|
762
762
|
|
|
763
|
-
`(networkInternals: import("
|
|
763
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals, compactNodeContext: import("src/architecture/network/network.types").CompactNodeRebuildContext) => void`
|
|
764
764
|
|
|
765
765
|
Rebuilds runtime nodes from compact payload arrays.
|
|
766
766
|
|
|
@@ -774,7 +774,7 @@ Returns: Nothing.
|
|
|
774
774
|
|
|
775
775
|
### rebuildOneCompactConnection
|
|
776
776
|
|
|
777
|
-
`(networkInternals: import("
|
|
777
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals, serializedConnection: import("src/architecture/network/network.types").SerializedConnection) => void`
|
|
778
778
|
|
|
779
779
|
Rebuilds one compact serialized connection.
|
|
780
780
|
|
|
@@ -786,7 +786,7 @@ Returns: Nothing.
|
|
|
786
786
|
|
|
787
787
|
### refreshNodeIndices
|
|
788
788
|
|
|
789
|
-
`(nodes: import("
|
|
789
|
+
`(nodes: import("src/architecture/node").default[]) => void`
|
|
790
790
|
|
|
791
791
|
Refreshes `node.index` for each node in list order.
|
|
792
792
|
|
|
@@ -814,7 +814,7 @@ Returns: Node type string.
|
|
|
814
814
|
|
|
815
815
|
### serializeOneConnection
|
|
816
816
|
|
|
817
|
-
`(connectionInstance: import("
|
|
817
|
+
`(connectionInstance: import("src/architecture/connection").default) => import("src/architecture/network/network.types").SerializedConnection`
|
|
818
818
|
|
|
819
819
|
Serializes one connection into compact indexed form.
|
|
820
820
|
|
|
@@ -827,7 +827,7 @@ Returns: Serialized connection record.
|
|
|
827
827
|
|
|
828
828
|
### asNetworkInternals
|
|
829
829
|
|
|
830
|
-
`(network: import("
|
|
830
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").SerializeNetworkInternals`
|
|
831
831
|
|
|
832
832
|
Casts a network instance to the internal runtime shape used by serializer helpers.
|
|
833
833
|
|
|
@@ -838,7 +838,7 @@ Returns: Runtime internals.
|
|
|
838
838
|
|
|
839
839
|
### asNetworkInternalsWithDropout
|
|
840
840
|
|
|
841
|
-
`(network: import("
|
|
841
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").NetworkInternalsWithDropout`
|
|
842
842
|
|
|
843
843
|
Casts a network instance to internals that include optional dropout metadata.
|
|
844
844
|
|
|
@@ -849,7 +849,7 @@ Returns: Runtime internals with optional dropout.
|
|
|
849
849
|
|
|
850
850
|
### asNodeInternals
|
|
851
851
|
|
|
852
|
-
`(node: import("
|
|
852
|
+
`(node: import("src/architecture/node").default) => import("src/architecture/network/network.types").SerializeNodeInternals`
|
|
853
853
|
|
|
854
854
|
Casts a node instance to its internal runtime representation.
|
|
855
855
|
|
|
@@ -860,7 +860,7 @@ Returns: Node internals.
|
|
|
860
860
|
|
|
861
861
|
### createCompactPayloadContext
|
|
862
862
|
|
|
863
|
-
`(data: import("
|
|
863
|
+
`(data: import("src/architecture/network/network.types").CompactSerializedNetworkTuple) => import("src/architecture/network/network.types").CompactPayloadContext`
|
|
864
864
|
|
|
865
865
|
Normalizes a compact tuple payload into a named object context.
|
|
866
866
|
|
|
@@ -874,7 +874,7 @@ Returns: Normalized payload context.
|
|
|
874
874
|
|
|
875
875
|
### createNetworkInstance
|
|
876
876
|
|
|
877
|
-
`(input: number, output: number) => import("
|
|
877
|
+
`(input: number, output: number) => import("src/architecture/network").default`
|
|
878
878
|
|
|
879
879
|
Creates a new network instance for deserialize workflows.
|
|
880
880
|
|
|
@@ -897,7 +897,7 @@ Returns: True when finite number.
|
|
|
897
897
|
|
|
898
898
|
### isNodeIndexInBounds
|
|
899
899
|
|
|
900
|
-
`(nodes: import("
|
|
900
|
+
`(nodes: import("src/architecture/node").default[], index: number) => boolean`
|
|
901
901
|
|
|
902
902
|
Checks whether an index is inside the bounds of a node array.
|
|
903
903
|
|
|
@@ -909,7 +909,7 @@ Returns: True when index is valid.
|
|
|
909
909
|
|
|
910
910
|
### resetMutableRuntimeCollections
|
|
911
911
|
|
|
912
|
-
`(networkInternals: import("
|
|
912
|
+
`(networkInternals: import("src/architecture/network/network.types").SerializeNetworkInternals) => void`
|
|
913
913
|
|
|
914
914
|
Clears mutable runtime collections before reconstruction.
|
|
915
915
|
|
|
@@ -920,7 +920,7 @@ Returns: Nothing.
|
|
|
920
920
|
|
|
921
921
|
### resolveNetworkSize
|
|
922
922
|
|
|
923
|
-
`(compactPayload: import("
|
|
923
|
+
`(compactPayload: import("src/architecture/network/network.types").CompactPayloadContext, inputSizeOverride: number | undefined, outputSizeOverride: number | undefined) => import("src/architecture/network/network.types").ResolvedNetworkSizeContext`
|
|
924
924
|
|
|
925
925
|
Resolves effective input/output dimensions using optional explicit overrides.
|
|
926
926
|
|
|
@@ -949,7 +949,7 @@ Returns: Effective size.
|
|
|
949
949
|
|
|
950
950
|
### findActivationByFunctionName
|
|
951
951
|
|
|
952
|
-
`(squashName: string | undefined) => import("
|
|
952
|
+
`(squashName: string | undefined) => import("src/methods/activation.utils").ActivationFunction | undefined`
|
|
953
953
|
|
|
954
954
|
Resolves activation by matching function.name.
|
|
955
955
|
|
|
@@ -960,7 +960,7 @@ Returns: Activation function or undefined.
|
|
|
960
960
|
|
|
961
961
|
### findActivationByKey
|
|
962
962
|
|
|
963
|
-
`(squashName: string | undefined) => import("
|
|
963
|
+
`(squashName: string | undefined) => import("src/methods/activation.utils").ActivationFunction | undefined`
|
|
964
964
|
|
|
965
965
|
Resolves activation by direct key lookup.
|
|
966
966
|
|
|
@@ -971,7 +971,7 @@ Returns: Activation function or undefined.
|
|
|
971
971
|
|
|
972
972
|
### findActivationEntryByReference
|
|
973
973
|
|
|
974
|
-
`(squashFunction: import("
|
|
974
|
+
`(squashFunction: import("src/methods/activation.utils").ActivationFunction) => [string, import("src/methods/activation.utils").ActivationFunction] | undefined`
|
|
975
975
|
|
|
976
976
|
Finds activation entry by function reference.
|
|
977
977
|
|
|
@@ -982,7 +982,7 @@ Returns: Activation entry or undefined.
|
|
|
982
982
|
|
|
983
983
|
### resolveActivationFunction
|
|
984
984
|
|
|
985
|
-
`(squashName: string | undefined) => import("
|
|
985
|
+
`(squashName: string | undefined) => import("src/methods/activation.utils").ActivationFunction`
|
|
986
986
|
|
|
987
987
|
Resolves an activation function from a stored key or function name.
|
|
988
988
|
|
|
@@ -996,7 +996,7 @@ Returns: Activation function.
|
|
|
996
996
|
|
|
997
997
|
### resolveActivationKey
|
|
998
998
|
|
|
999
|
-
`(squashFunction: import("
|
|
999
|
+
`(squashFunction: import("src/methods/activation.utils").ActivationFunction) => string`
|
|
1000
1000
|
|
|
1001
1001
|
Resolves a canonical activation key from a runtime activation function reference.
|
|
1002
1002
|
|
|
@@ -1010,7 +1010,7 @@ Returns: Activation key.
|
|
|
1010
1010
|
|
|
1011
1011
|
### resolveNamedActivationFromFunction
|
|
1012
1012
|
|
|
1013
|
-
`(squashFunction: import("
|
|
1013
|
+
`(squashFunction: import("src/methods/activation.utils").ActivationFunction) => string | undefined`
|
|
1014
1014
|
|
|
1015
1015
|
Resolves activation name from function.name when non-empty.
|
|
1016
1016
|
|