@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
|
@@ -179,7 +179,7 @@ Returns: Array of output neuron activations (length == network.output).
|
|
|
179
179
|
|
|
180
180
|
### activateViaNetworkDelegate
|
|
181
181
|
|
|
182
|
-
`(activationContext: import("
|
|
182
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").RawActivationContext) => number[]`
|
|
183
183
|
|
|
184
184
|
Delegate raw activation to the core network activation implementation.
|
|
185
185
|
|
|
@@ -190,7 +190,7 @@ Returns: Activation output vector.
|
|
|
190
190
|
|
|
191
191
|
### activateWithSelectedReusePath
|
|
192
192
|
|
|
193
|
-
`(activationContext: import("
|
|
193
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").RawActivationContext) => number[]`
|
|
194
194
|
|
|
195
195
|
Select the raw activation execution path based on runtime reuse configuration.
|
|
196
196
|
|
|
@@ -201,7 +201,7 @@ Returns: Activation output vector.
|
|
|
201
201
|
|
|
202
202
|
### executeRawActivation
|
|
203
203
|
|
|
204
|
-
`(activationContext: import("
|
|
204
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").RawActivationContext) => number[]`
|
|
205
205
|
|
|
206
206
|
Execute raw activation through the network delegate using a compact orchestration flow.
|
|
207
207
|
|
|
@@ -217,7 +217,7 @@ Returns: Activation output vector from the network delegate.
|
|
|
217
217
|
|
|
218
218
|
### acquireOutputBuffer
|
|
219
219
|
|
|
220
|
-
`(outputSize: number) => import("
|
|
220
|
+
`(outputSize: number) => import("src/architecture/activationArrayPool").ActivationArray`
|
|
221
221
|
|
|
222
222
|
Acquire a pooled activation output buffer for the current output width.
|
|
223
223
|
|
|
@@ -241,7 +241,7 @@ Returns: Output activation values.
|
|
|
241
241
|
|
|
242
242
|
### activateLayer
|
|
243
243
|
|
|
244
|
-
`(currentLayer: import("
|
|
244
|
+
`(currentLayer: import("src/architecture/layer").default, layerIndex: number, inputVector: number[], isTraining: boolean) => number[]`
|
|
245
245
|
|
|
246
246
|
Activate one layer, routing input only for the first layer.
|
|
247
247
|
|
|
@@ -255,7 +255,7 @@ Returns: Layer activations.
|
|
|
255
255
|
|
|
256
256
|
### activateLayeredNetworkWithDropout
|
|
257
257
|
|
|
258
|
-
`(network: import("
|
|
258
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, inputVector: number[], isTraining: boolean, outputBuffer: import("src/architecture/activationArrayPool").ActivationArray, stats: import("src/architecture/network/activate/network.activate.utils.types").ActivationStats) => void`
|
|
259
259
|
|
|
260
260
|
Run layered activation with dropout masks and no stochastic-depth skips.
|
|
261
261
|
|
|
@@ -271,7 +271,7 @@ Returns: Nothing.
|
|
|
271
271
|
|
|
272
272
|
### activateLayeredNetworkWithStochasticDepth
|
|
273
273
|
|
|
274
|
-
`(network: import("
|
|
274
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, inputVector: number[], isTraining: boolean, outputBuffer: import("src/architecture/activationArrayPool").ActivationArray, stats: import("src/architecture/network/activate/network.activate.utils.types").ActivationStats) => void`
|
|
275
275
|
|
|
276
276
|
Run layered activation with stochastic-depth skipping and inverse-survival scaling.
|
|
277
277
|
|
|
@@ -287,7 +287,7 @@ Returns: Nothing.
|
|
|
287
287
|
|
|
288
288
|
### activateNodeNetworkFallback
|
|
289
289
|
|
|
290
|
-
`(network: import("
|
|
290
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, inputVector: number[], isTraining: boolean, outputBuffer: import("src/architecture/activationArrayPool").ActivationArray, stats: import("src/architecture/network/activate/network.activate.utils.types").ActivationStats) => void`
|
|
291
291
|
|
|
292
292
|
Run fallback node-by-node activation for networks without explicit layer definitions.
|
|
293
293
|
|
|
@@ -303,7 +303,7 @@ Returns: Nothing.
|
|
|
303
303
|
|
|
304
304
|
### activateNodesAndCollectOutputs
|
|
305
305
|
|
|
306
|
-
`(nodes: import("
|
|
306
|
+
`(nodes: import("src/architecture/node").default[], inputVector: number[], outputBuffer: import("src/architecture/activationArrayPool").ActivationArray) => void`
|
|
307
307
|
|
|
308
308
|
Activate raw nodes in order and collect output-node activations into output buffer.
|
|
309
309
|
|
|
@@ -316,7 +316,7 @@ Returns: Nothing.
|
|
|
316
316
|
|
|
317
317
|
### applyDropConnect
|
|
318
318
|
|
|
319
|
-
`(network: import("
|
|
319
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, isTraining: boolean, stats: import("src/architecture/network/activate/network.activate.utils.types").ActivationStats) => void`
|
|
320
320
|
|
|
321
321
|
Apply drop-connect masking and restore original weights where required.
|
|
322
322
|
|
|
@@ -330,7 +330,7 @@ Returns: Nothing.
|
|
|
330
330
|
|
|
331
331
|
### applyFallbackHiddenDropout
|
|
332
332
|
|
|
333
|
-
`(hiddenNodes: import("
|
|
333
|
+
`(hiddenNodes: import("src/architecture/node").default[], runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, dropoutProbability: number, isTraining: boolean, stats: import("src/architecture/network/activate/network.activate.utils.types").ActivationStats) => void`
|
|
334
334
|
|
|
335
335
|
Apply fallback dropout for hidden nodes in raw node traversal mode.
|
|
336
336
|
|
|
@@ -345,7 +345,7 @@ Returns: Nothing.
|
|
|
345
345
|
|
|
346
346
|
### applyFallbackWeightNoise
|
|
347
347
|
|
|
348
|
-
`(network: import("
|
|
348
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, isTraining: boolean) => void`
|
|
349
349
|
|
|
350
350
|
Apply raw fallback weight noise to all connections using global standard deviation.
|
|
351
351
|
|
|
@@ -358,7 +358,7 @@ Returns: Nothing.
|
|
|
358
358
|
|
|
359
359
|
### applyHiddenLayerDropout
|
|
360
360
|
|
|
361
|
-
`(layer: import("
|
|
361
|
+
`(layer: import("src/architecture/layer").default, rawActivations: number[], runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, dropoutProbability: number, isTraining: boolean, stats: import("src/architecture/network/activate/network.activate.utils.types").ActivationStats) => void`
|
|
362
362
|
|
|
363
363
|
Apply dropout masks to hidden layer nodes and enforce at least one active node.
|
|
364
364
|
|
|
@@ -374,7 +374,7 @@ Returns: Nothing.
|
|
|
374
374
|
|
|
375
375
|
### applyTrainingDropConnect
|
|
376
376
|
|
|
377
|
-
`(network: import("
|
|
377
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, stats: import("src/architecture/network/activate/network.activate.utils.types").ActivationStats) => void`
|
|
378
378
|
|
|
379
379
|
Apply training-time drop-connect masks to each connection.
|
|
380
380
|
|
|
@@ -387,7 +387,7 @@ Returns: Nothing.
|
|
|
387
387
|
|
|
388
388
|
### applyTrainingWeightNoise
|
|
389
389
|
|
|
390
|
-
`(network: import("
|
|
390
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, isTraining: boolean) => import("src/architecture/network/activate/network.activate.utils.types").WeightNoiseApplyResult`
|
|
391
391
|
|
|
392
392
|
Apply per-connection training noise for the main activation flow.
|
|
393
393
|
|
|
@@ -400,7 +400,7 @@ Returns: Applied-state information for downstream restore logic.
|
|
|
400
400
|
|
|
401
401
|
### collectHiddenNodes
|
|
402
402
|
|
|
403
|
-
`(nodes: import("
|
|
403
|
+
`(nodes: import("src/architecture/node").default[]) => import("src/architecture/node").default[]`
|
|
404
404
|
|
|
405
405
|
Collect hidden nodes from a raw node list.
|
|
406
406
|
|
|
@@ -422,7 +422,7 @@ Returns: True when any probability is invalid.
|
|
|
422
422
|
|
|
423
423
|
### createActivationStats
|
|
424
424
|
|
|
425
|
-
`(totalConnections: number) => import("
|
|
425
|
+
`(totalConnections: number) => import("src/architecture/network/activate/network.activate.utils.types").ActivationStats`
|
|
426
426
|
|
|
427
427
|
Create activation statistics container for the current pass.
|
|
428
428
|
|
|
@@ -433,7 +433,7 @@ Returns: Initialized activation stats object.
|
|
|
433
433
|
|
|
434
434
|
### createWeightNoiseStats
|
|
435
435
|
|
|
436
|
-
`() => import("
|
|
436
|
+
`() => import("src/architecture/network/activate/network.activate.utils.types").WeightNoiseStats`
|
|
437
437
|
|
|
438
438
|
Create the weight-noise statistics record with zeroed aggregates.
|
|
439
439
|
|
|
@@ -441,7 +441,7 @@ Returns: Zero-initialized weight-noise stats.
|
|
|
441
441
|
|
|
442
442
|
### decideLayerSkip
|
|
443
443
|
|
|
444
|
-
`(network: import("
|
|
444
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, currentLayerNodeCount: number, layerIndex: number, isTraining: boolean, previousLayerActivations: number[] | undefined) => { shouldSkipLayer: boolean; surviveProbability: number; }`
|
|
445
445
|
|
|
446
446
|
Decide whether a hidden layer should be skipped in stochastic-depth mode.
|
|
447
447
|
|
|
@@ -457,7 +457,7 @@ Returns: Skip decision and survival probability for the layer.
|
|
|
457
457
|
|
|
458
458
|
### executeActivationPath
|
|
459
459
|
|
|
460
|
-
`(network: import("
|
|
460
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, inputVector: number[], isTraining: boolean, outputBuffer: import("src/architecture/activationArrayPool").ActivationArray, stats: import("src/architecture/network/activate/network.activate.utils.types").ActivationStats) => void`
|
|
461
461
|
|
|
462
462
|
Execute one of the three activation branches: stochastic layers, standard layers, or raw nodes.
|
|
463
463
|
|
|
@@ -473,7 +473,7 @@ Returns: Nothing.
|
|
|
473
473
|
|
|
474
474
|
### finalizeNodePathWeightNoiseRestore
|
|
475
475
|
|
|
476
|
-
`(network: import("
|
|
476
|
+
`(network: import("src/architecture/network").default, isTraining: boolean, appliedWeightNoise: boolean) => void`
|
|
477
477
|
|
|
478
478
|
Restore temporary weight-noise values for fallback node path only.
|
|
479
479
|
|
|
@@ -486,7 +486,7 @@ Returns: Nothing.
|
|
|
486
486
|
|
|
487
487
|
### finalizeTrainingStepAndStats
|
|
488
488
|
|
|
489
|
-
`(runtimeNetwork: import("
|
|
489
|
+
`(runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, stats: import("src/architecture/network/activate/network.activate.utils.types").ActivationStats, isTraining: boolean) => void`
|
|
490
490
|
|
|
491
491
|
Finalize training counters and attach activation statistics to runtime state.
|
|
492
492
|
|
|
@@ -499,7 +499,7 @@ Returns: Nothing.
|
|
|
499
499
|
|
|
500
500
|
### findSourceLayerIndex
|
|
501
501
|
|
|
502
|
-
`(network: import("
|
|
502
|
+
`(network: import("src/architecture/network").default, connection: import("src/architecture/connection").default) => number`
|
|
503
503
|
|
|
504
504
|
Find the layer index containing a connection source node.
|
|
505
505
|
|
|
@@ -534,7 +534,7 @@ Returns: True when pass-through activations are compatible.
|
|
|
534
534
|
|
|
535
535
|
### hasLayeredNetwork
|
|
536
536
|
|
|
537
|
-
`(network: import("
|
|
537
|
+
`(network: import("src/architecture/network").default) => boolean`
|
|
538
538
|
|
|
539
539
|
Check whether the network has at least one explicit layer.
|
|
540
540
|
|
|
@@ -545,7 +545,7 @@ Returns: True when layered activation path should run.
|
|
|
545
545
|
|
|
546
546
|
### hasLayeredNetworkWithStochasticDepth
|
|
547
547
|
|
|
548
|
-
`(network: import("
|
|
548
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps) => boolean`
|
|
549
549
|
|
|
550
550
|
Check whether the network has layers and stochastic-depth configuration for layer skipping path.
|
|
551
551
|
|
|
@@ -557,7 +557,7 @@ Returns: True when stochastic-depth layer path should run.
|
|
|
557
557
|
|
|
558
558
|
### hasOriginalWeightNoise
|
|
559
559
|
|
|
560
|
-
`(connection: import("
|
|
560
|
+
`(connection: import("src/architecture/connection").default) => boolean`
|
|
561
561
|
|
|
562
562
|
Check whether a connection already has an original weight-noise snapshot.
|
|
563
563
|
|
|
@@ -580,7 +580,7 @@ Returns: True when the layer is hidden.
|
|
|
580
580
|
|
|
581
581
|
### persistOriginalWeightNoise
|
|
582
582
|
|
|
583
|
-
`(connection: import("
|
|
583
|
+
`(connection: import("src/architecture/connection").default) => void`
|
|
584
584
|
|
|
585
585
|
Store current connection weight before applying temporary weight-noise modifications.
|
|
586
586
|
|
|
@@ -591,7 +591,7 @@ Returns: Nothing.
|
|
|
591
591
|
|
|
592
592
|
### prepareTopologyForActivation
|
|
593
593
|
|
|
594
|
-
`(runtimeNetwork: import("
|
|
594
|
+
`(runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps) => void`
|
|
595
595
|
|
|
596
596
|
Ensure topological order is refreshed before activation when acyclic mode requires it.
|
|
597
597
|
|
|
@@ -602,7 +602,7 @@ Returns: Nothing.
|
|
|
602
602
|
|
|
603
603
|
### recordSkippedLayer
|
|
604
604
|
|
|
605
|
-
`(network: import("
|
|
605
|
+
`(network: import("src/architecture/network").default, stats: import("src/architecture/network/activate/network.activate.utils.types").ActivationStats, layerIndex: number) => void`
|
|
606
606
|
|
|
607
607
|
Record a skipped layer in runtime and stats trackers.
|
|
608
608
|
|
|
@@ -615,7 +615,7 @@ Returns: Nothing.
|
|
|
615
615
|
|
|
616
616
|
### releaseBufferAndCreateResult
|
|
617
617
|
|
|
618
|
-
`(outputBuffer: import("
|
|
618
|
+
`(outputBuffer: import("src/architecture/activationArrayPool").ActivationArray) => number[]`
|
|
619
619
|
|
|
620
620
|
Release pooled output buffer and return a detached plain array copy.
|
|
621
621
|
|
|
@@ -626,7 +626,7 @@ Returns: Plain array of output values.
|
|
|
626
626
|
|
|
627
627
|
### resetSkippedLayers
|
|
628
628
|
|
|
629
|
-
`(network: import("
|
|
629
|
+
`(network: import("src/architecture/network").default) => void`
|
|
630
630
|
|
|
631
631
|
Clear the runtime list of skipped layers before current activation pass.
|
|
632
632
|
|
|
@@ -637,7 +637,7 @@ Returns: Nothing.
|
|
|
637
637
|
|
|
638
638
|
### resolveConnectionNoiseStd
|
|
639
639
|
|
|
640
|
-
`(network: import("
|
|
640
|
+
`(network: import("src/architecture/network").default, runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, connection: import("src/architecture/connection").default, fallbackStandardDeviation: number) => number`
|
|
641
641
|
|
|
642
642
|
Resolve connection-specific weight-noise standard deviation, including per-hidden overrides.
|
|
643
643
|
|
|
@@ -651,7 +651,7 @@ Returns: Effective standard deviation for this connection.
|
|
|
651
651
|
|
|
652
652
|
### resolveDynamicWeightNoiseStd
|
|
653
653
|
|
|
654
|
-
`(runtimeNetwork: import("
|
|
654
|
+
`(runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps) => number`
|
|
655
655
|
|
|
656
656
|
Resolve the training-step adjusted global weight-noise standard deviation.
|
|
657
657
|
|
|
@@ -662,7 +662,7 @@ Returns: Effective weight-noise standard deviation for current training step.
|
|
|
662
662
|
|
|
663
663
|
### restoreDropConnectWeights
|
|
664
664
|
|
|
665
|
-
`(network: import("
|
|
665
|
+
`(network: import("src/architecture/network").default) => void`
|
|
666
666
|
|
|
667
667
|
Restore drop-connect modified weights and normalize all masks back to one.
|
|
668
668
|
|
|
@@ -673,7 +673,7 @@ Returns: Nothing.
|
|
|
673
673
|
|
|
674
674
|
### restoreOriginalDropConnectWeight
|
|
675
675
|
|
|
676
|
-
`(connection: import("
|
|
676
|
+
`(connection: import("src/architecture/connection").default) => void`
|
|
677
677
|
|
|
678
678
|
Restore and clear original connection weight after drop-connect.
|
|
679
679
|
|
|
@@ -684,7 +684,7 @@ Returns: Nothing.
|
|
|
684
684
|
|
|
685
685
|
### restoreOriginalWeightNoise
|
|
686
686
|
|
|
687
|
-
`(connection: import("
|
|
687
|
+
`(connection: import("src/architecture/connection").default) => void`
|
|
688
688
|
|
|
689
689
|
Restore and clear the original weight-noise snapshot for a connection.
|
|
690
690
|
|
|
@@ -707,7 +707,7 @@ Returns: Scaled activation vector.
|
|
|
707
707
|
|
|
708
708
|
### setAllMasksToOne
|
|
709
709
|
|
|
710
|
-
`(nodes: import("
|
|
710
|
+
`(nodes: import("src/architecture/node").default[]) => void`
|
|
711
711
|
|
|
712
712
|
Set mask value to one for every node in a layer.
|
|
713
713
|
|
|
@@ -718,7 +718,7 @@ Returns: Nothing.
|
|
|
718
718
|
|
|
719
719
|
### setDropConnectMask
|
|
720
720
|
|
|
721
|
-
`(connection: import("
|
|
721
|
+
`(connection: import("src/architecture/connection").default, dropConnectMask: number) => void`
|
|
722
722
|
|
|
723
723
|
Set drop-connect mask value for a connection.
|
|
724
724
|
|
|
@@ -730,7 +730,7 @@ Returns: Nothing.
|
|
|
730
730
|
|
|
731
731
|
### setLastSampledNoise
|
|
732
732
|
|
|
733
|
-
`(connection: import("
|
|
733
|
+
`(connection: import("src/architecture/connection").default, sampledNoise: number) => void`
|
|
734
734
|
|
|
735
735
|
Persist last sampled weight-noise value for a connection.
|
|
736
736
|
|
|
@@ -742,7 +742,7 @@ Returns: Nothing.
|
|
|
742
742
|
|
|
743
743
|
### stashOriginalDropConnectWeight
|
|
744
744
|
|
|
745
|
-
`(connection: import("
|
|
745
|
+
`(connection: import("src/architecture/connection").default) => void`
|
|
746
746
|
|
|
747
747
|
Store original connection weight before drop-connect zeroing.
|
|
748
748
|
|
|
@@ -753,7 +753,7 @@ Returns: Nothing.
|
|
|
753
753
|
|
|
754
754
|
### tryFastSlabActivation
|
|
755
755
|
|
|
756
|
-
`(runtimeNetwork: import("
|
|
756
|
+
`(runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, inputVector: number[], isTraining: boolean) => number[] | undefined`
|
|
757
757
|
|
|
758
758
|
Attempt fast slab activation and safely fall back to regular activation on failure.
|
|
759
759
|
|
|
@@ -766,7 +766,7 @@ Returns: Fast slab output when available, otherwise undefined.
|
|
|
766
766
|
|
|
767
767
|
### updateStochasticDepthFromSchedule
|
|
768
768
|
|
|
769
|
-
`(runtimeNetwork: import("
|
|
769
|
+
`(runtimeNetwork: import("src/architecture/network/activate/network.activate.utils.types").ActivateRuntimeNetworkProps, isTraining: boolean) => void`
|
|
770
770
|
|
|
771
771
|
Update stochastic depth probabilities using a training schedule when valid.
|
|
772
772
|
|
|
@@ -778,7 +778,7 @@ Returns: Nothing.
|
|
|
778
778
|
|
|
779
779
|
### validateInputVector
|
|
780
780
|
|
|
781
|
-
`(network: import("
|
|
781
|
+
`(network: import("src/architecture/network").default, inputVector: number[]) => void`
|
|
782
782
|
|
|
783
783
|
Validate that the incoming input vector exists and matches expected input size.
|
|
784
784
|
|
|
@@ -790,7 +790,7 @@ Returns: Nothing.
|
|
|
790
790
|
|
|
791
791
|
### validateNetworkNodes
|
|
792
792
|
|
|
793
|
-
`(network: import("
|
|
793
|
+
`(network: import("src/architecture/network").default) => void`
|
|
794
794
|
|
|
795
795
|
Assert that the network contains nodes before executing activation routines.
|
|
796
796
|
|
|
@@ -801,7 +801,7 @@ Returns: Nothing.
|
|
|
801
801
|
|
|
802
802
|
### writeLayerActivationsToOutput
|
|
803
803
|
|
|
804
|
-
`(layerActivations: number[] | undefined, outputBuffer: import("
|
|
804
|
+
`(layerActivations: number[] | undefined, outputBuffer: import("src/architecture/activationArrayPool").ActivationArray, outputSize: number) => void`
|
|
805
805
|
|
|
806
806
|
Copy final layer activations into the pooled network output buffer.
|
|
807
807
|
|
|
@@ -816,7 +816,7 @@ Returns: Nothing.
|
|
|
816
816
|
|
|
817
817
|
### activateSingleBatchRow
|
|
818
818
|
|
|
819
|
-
`(rowActivationContext: import("
|
|
819
|
+
`(rowActivationContext: import("src/architecture/network/activate/network.activate.utils.types").BatchRowActivationContext) => number[]`
|
|
820
820
|
|
|
821
821
|
Validate and activate one batch row.
|
|
822
822
|
|
|
@@ -827,7 +827,7 @@ Returns: Activation output vector for the row.
|
|
|
827
827
|
|
|
828
828
|
### activateValidatedBatchRows
|
|
829
829
|
|
|
830
|
-
`(activationContext: import("
|
|
830
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").BatchActivationContext) => number[][]`
|
|
831
831
|
|
|
832
832
|
Activate each row in a validated batch matrix.
|
|
833
833
|
|
|
@@ -849,7 +849,7 @@ Returns: Nothing.
|
|
|
849
849
|
|
|
850
850
|
### assertBatchRowInputSize
|
|
851
851
|
|
|
852
|
-
`(rowActivationContext: import("
|
|
852
|
+
`(rowActivationContext: import("src/architecture/network/activate/network.activate.utils.types").BatchRowActivationContext) => void`
|
|
853
853
|
|
|
854
854
|
Validate one batch row dimensionality.
|
|
855
855
|
|
|
@@ -860,7 +860,7 @@ Returns: Nothing.
|
|
|
860
860
|
|
|
861
861
|
### buildBatchRowInputSizeMismatchMessage
|
|
862
862
|
|
|
863
|
-
`(rowActivationContext: import("
|
|
863
|
+
`(rowActivationContext: import("src/architecture/network/activate/network.activate.utils.types").BatchRowActivationContext) => string`
|
|
864
864
|
|
|
865
865
|
Build a descriptive mismatch message for invalid batch row input dimensions.
|
|
866
866
|
|
|
@@ -871,7 +871,7 @@ Returns: Formatted error message for invalid row dimensionality.
|
|
|
871
871
|
|
|
872
872
|
### executeBatchActivation
|
|
873
873
|
|
|
874
|
-
`(activationContext: import("
|
|
874
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").BatchActivationContext) => number[][]`
|
|
875
875
|
|
|
876
876
|
Execute mini-batch activation with top-level shape validation and per-row checks.
|
|
877
877
|
|
|
@@ -896,7 +896,7 @@ Returns: Numeric length as string or predefined undefined text.
|
|
|
896
896
|
|
|
897
897
|
### isBatchRowInputSizeValid
|
|
898
898
|
|
|
899
|
-
`(rowActivationContext: import("
|
|
899
|
+
`(rowActivationContext: import("src/architecture/network/activate/network.activate.utils.types").BatchRowActivationContext) => boolean`
|
|
900
900
|
|
|
901
901
|
Determine whether one batch row matches the expected input dimensionality.
|
|
902
902
|
|
|
@@ -909,7 +909,7 @@ Returns: True when row size is valid.
|
|
|
909
909
|
|
|
910
910
|
### createBatchActivationContext
|
|
911
911
|
|
|
912
|
-
`(network: import("
|
|
912
|
+
`(network: import("src/architecture/network").default, batchInputs: number[][], isTraining: boolean) => import("src/architecture/network/activate/network.activate.utils.types").BatchActivationContext`
|
|
913
913
|
|
|
914
914
|
Build shared batch activation context for helper orchestration.
|
|
915
915
|
|
|
@@ -922,7 +922,7 @@ Returns: Fully populated batch activation context.
|
|
|
922
922
|
|
|
923
923
|
### createNoTraceActivationContext
|
|
924
924
|
|
|
925
|
-
`(network: import("
|
|
925
|
+
`(network: import("src/architecture/network").default, inputVector: number[]) => import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext`
|
|
926
926
|
|
|
927
927
|
Build shared no-trace activation context for helper orchestration.
|
|
928
928
|
|
|
@@ -934,7 +934,7 @@ Returns: Fully populated no-trace activation context.
|
|
|
934
934
|
|
|
935
935
|
### createRawActivationContext
|
|
936
936
|
|
|
937
|
-
`(network: import("
|
|
937
|
+
`(network: import("src/architecture/network").default, inputVector: number[], isTraining: boolean, maximumActivationDepth: number) => import("src/architecture/network/activate/network.activate.utils.types").RawActivationContext`
|
|
938
938
|
|
|
939
939
|
Build shared raw activation context for helper orchestration.
|
|
940
940
|
|
|
@@ -948,7 +948,7 @@ Returns: Fully populated raw activation context.
|
|
|
948
948
|
|
|
949
949
|
### executeBatchActivation
|
|
950
950
|
|
|
951
|
-
`(activationContext: import("
|
|
951
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").BatchActivationContext) => number[][]`
|
|
952
952
|
|
|
953
953
|
Execute mini-batch activation with top-level shape validation and per-row checks.
|
|
954
954
|
|
|
@@ -962,7 +962,7 @@ Returns: Matrix of activation outputs.
|
|
|
962
962
|
|
|
963
963
|
### executeNoTraceActivation
|
|
964
964
|
|
|
965
|
-
`(activationContext: import("
|
|
965
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext) => number[]`
|
|
966
966
|
|
|
967
967
|
Execute no-trace activation with a fast-path attempt and deterministic fallback traversal.
|
|
968
968
|
|
|
@@ -976,7 +976,7 @@ Returns: Output activation vector detached from pooled storage.
|
|
|
976
976
|
|
|
977
977
|
### executeRawActivation
|
|
978
978
|
|
|
979
|
-
`(activationContext: import("
|
|
979
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").RawActivationContext) => number[]`
|
|
980
980
|
|
|
981
981
|
Execute raw activation through the network delegate using a compact orchestration flow.
|
|
982
982
|
|
|
@@ -992,7 +992,7 @@ Returns: Activation output vector from the network delegate.
|
|
|
992
992
|
|
|
993
993
|
### activateWithoutTraceUsingNodeIteration
|
|
994
994
|
|
|
995
|
-
`(activationContext: import("
|
|
995
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext) => number[]`
|
|
996
996
|
|
|
997
997
|
Execute no-trace activation through node traversal and pooled output collection.
|
|
998
998
|
|
|
@@ -1003,7 +1003,7 @@ Returns: Detached output activation vector.
|
|
|
1003
1003
|
|
|
1004
1004
|
### assertInputMatchesNetworkInputSize
|
|
1005
1005
|
|
|
1006
|
-
`(activationContext: import("
|
|
1006
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext) => void`
|
|
1007
1007
|
|
|
1008
1008
|
Validate that the input vector length matches expected network input dimensionality.
|
|
1009
1009
|
|
|
@@ -1014,7 +1014,7 @@ Returns: Nothing.
|
|
|
1014
1014
|
|
|
1015
1015
|
### buildInputSizeMismatchMessage
|
|
1016
1016
|
|
|
1017
|
-
`(activationContext: import("
|
|
1017
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext) => string`
|
|
1018
1018
|
|
|
1019
1019
|
Build a descriptive input mismatch message for activation validation errors.
|
|
1020
1020
|
|
|
@@ -1025,7 +1025,7 @@ Returns: Formatted mismatch error message.
|
|
|
1025
1025
|
|
|
1026
1026
|
### canUseNoTraceFastSlab
|
|
1027
1027
|
|
|
1028
|
-
`(activationContext: import("
|
|
1028
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext) => boolean`
|
|
1029
1029
|
|
|
1030
1030
|
Determine whether fast slab activation is available for no-trace execution mode.
|
|
1031
1031
|
|
|
@@ -1036,7 +1036,7 @@ Returns: True when slab execution is available for inference mode.
|
|
|
1036
1036
|
|
|
1037
1037
|
### detachPooledOutputBuffer
|
|
1038
1038
|
|
|
1039
|
-
`(pooledOutputBuffer: import("
|
|
1039
|
+
`(pooledOutputBuffer: import("src/architecture/activationArrayPool").ActivationArray) => number[]`
|
|
1040
1040
|
|
|
1041
1041
|
Clone pooled output storage into a detached plain array.
|
|
1042
1042
|
|
|
@@ -1047,7 +1047,7 @@ Returns: Detached output activation vector.
|
|
|
1047
1047
|
|
|
1048
1048
|
### executeNoTraceActivation
|
|
1049
1049
|
|
|
1050
|
-
`(activationContext: import("
|
|
1050
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext) => number[]`
|
|
1051
1051
|
|
|
1052
1052
|
Execute no-trace activation with a fast-path attempt and deterministic fallback traversal.
|
|
1053
1053
|
|
|
@@ -1072,7 +1072,7 @@ Returns: Numeric length as string or predefined undefined text.
|
|
|
1072
1072
|
|
|
1073
1073
|
### isInputVectorLengthValid
|
|
1074
1074
|
|
|
1075
|
-
`(activationContext: import("
|
|
1075
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext) => boolean`
|
|
1076
1076
|
|
|
1077
1077
|
Check whether the input vector has a valid length for activation.
|
|
1078
1078
|
|
|
@@ -1083,7 +1083,7 @@ Returns: True when the input vector is an array with expected length.
|
|
|
1083
1083
|
|
|
1084
1084
|
### refreshTopologicalOrderWhenRequired
|
|
1085
1085
|
|
|
1086
|
-
`(activationContext: import("
|
|
1086
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext) => void`
|
|
1087
1087
|
|
|
1088
1088
|
Refresh cached topological order when acyclic mode is active and marked dirty.
|
|
1089
1089
|
|
|
@@ -1094,7 +1094,7 @@ Returns: Nothing.
|
|
|
1094
1094
|
|
|
1095
1095
|
### tryActivateWithFastSlab
|
|
1096
1096
|
|
|
1097
|
-
`(activationContext: import("
|
|
1097
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext) => number[] | null`
|
|
1098
1098
|
|
|
1099
1099
|
Attempt fast slab activation and return null when slab execution is unavailable or fails.
|
|
1100
1100
|
|
|
@@ -1107,7 +1107,7 @@ Returns: Fast slab output when successful, otherwise null.
|
|
|
1107
1107
|
|
|
1108
1108
|
### createBatchActivationContext
|
|
1109
1109
|
|
|
1110
|
-
`(network: import("
|
|
1110
|
+
`(network: import("src/architecture/network").default, batchInputs: number[][], isTraining: boolean) => import("src/architecture/network/activate/network.activate.utils.types").BatchActivationContext`
|
|
1111
1111
|
|
|
1112
1112
|
Build shared batch activation context for helper orchestration.
|
|
1113
1113
|
|
|
@@ -1120,7 +1120,7 @@ Returns: Fully populated batch activation context.
|
|
|
1120
1120
|
|
|
1121
1121
|
### createNoTraceActivationContext
|
|
1122
1122
|
|
|
1123
|
-
`(network: import("
|
|
1123
|
+
`(network: import("src/architecture/network").default, inputVector: number[]) => import("src/architecture/network/activate/network.activate.utils.types").NoTraceActivationContext`
|
|
1124
1124
|
|
|
1125
1125
|
Build shared no-trace activation context for helper orchestration.
|
|
1126
1126
|
|
|
@@ -1132,7 +1132,7 @@ Returns: Fully populated no-trace activation context.
|
|
|
1132
1132
|
|
|
1133
1133
|
### createRawActivationContext
|
|
1134
1134
|
|
|
1135
|
-
`(network: import("
|
|
1135
|
+
`(network: import("src/architecture/network").default, inputVector: number[], isTraining: boolean, maximumActivationDepth: number) => import("src/architecture/network/activate/network.activate.utils.types").RawActivationContext`
|
|
1136
1136
|
|
|
1137
1137
|
Build shared raw activation context for helper orchestration.
|
|
1138
1138
|
|
|
@@ -1146,7 +1146,7 @@ Returns: Fully populated raw activation context.
|
|
|
1146
1146
|
|
|
1147
1147
|
### toNetworkInternals
|
|
1148
1148
|
|
|
1149
|
-
`(network: import("
|
|
1149
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").ActivateNetworkInternals`
|
|
1150
1150
|
|
|
1151
1151
|
Convert a network instance into the activation internals interface used by helper modules.
|
|
1152
1152
|
|
|
@@ -1159,7 +1159,7 @@ Returns: Network internals view used by activation helper modules.
|
|
|
1159
1159
|
|
|
1160
1160
|
### activateHiddenNode
|
|
1161
1161
|
|
|
1162
|
-
`(networkNode: import("
|
|
1162
|
+
`(networkNode: import("src/architecture/node").default) => void`
|
|
1163
1163
|
|
|
1164
1164
|
Activate a hidden node without trace bookkeeping.
|
|
1165
1165
|
|
|
@@ -1170,7 +1170,7 @@ Returns: Nothing.
|
|
|
1170
1170
|
|
|
1171
1171
|
### activateInputNode
|
|
1172
1172
|
|
|
1173
|
-
`(activationContext: import("
|
|
1173
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").SingleNodeNoTraceActivationContext) => void`
|
|
1174
1174
|
|
|
1175
1175
|
Activate an input node using the matching input vector value.
|
|
1176
1176
|
|
|
@@ -1181,7 +1181,7 @@ Returns: Nothing.
|
|
|
1181
1181
|
|
|
1182
1182
|
### activateOutputNodeAndAdvanceIndex
|
|
1183
1183
|
|
|
1184
|
-
`(activationContext: import("
|
|
1184
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").SingleNodeNoTraceActivationContext) => number`
|
|
1185
1185
|
|
|
1186
1186
|
Activate an output node, write the activation value, and advance the output index.
|
|
1187
1187
|
|
|
@@ -1192,7 +1192,7 @@ Returns: Next output write index.
|
|
|
1192
1192
|
|
|
1193
1193
|
### activateSingleNodeWithoutTrace
|
|
1194
1194
|
|
|
1195
|
-
`(activationContext: import("
|
|
1195
|
+
`(activationContext: import("src/architecture/network/activate/network.activate.utils.types").SingleNodeNoTraceActivationContext) => number`
|
|
1196
1196
|
|
|
1197
1197
|
Activate one node and return the next output write index.
|
|
1198
1198
|
|
|
@@ -1203,7 +1203,7 @@ Returns: Updated output write index.
|
|
|
1203
1203
|
|
|
1204
1204
|
### isInputNode
|
|
1205
1205
|
|
|
1206
|
-
`(networkNode: import("
|
|
1206
|
+
`(networkNode: import("src/architecture/node").default) => boolean`
|
|
1207
1207
|
|
|
1208
1208
|
Determine whether a node is an input-role node.
|
|
1209
1209
|
|
|
@@ -1214,7 +1214,7 @@ Returns: True when node role is input.
|
|
|
1214
1214
|
|
|
1215
1215
|
### isOutputNode
|
|
1216
1216
|
|
|
1217
|
-
`(networkNode: import("
|
|
1217
|
+
`(networkNode: import("src/architecture/node").default) => boolean`
|
|
1218
1218
|
|
|
1219
1219
|
Determine whether a node is an output-role node.
|
|
1220
1220
|
|
|
@@ -1225,7 +1225,7 @@ Returns: True when node role is output.
|
|
|
1225
1225
|
|
|
1226
1226
|
### populatePooledOutputBufferFromNodes
|
|
1227
1227
|
|
|
1228
|
-
`(traversalContext: import("
|
|
1228
|
+
`(traversalContext: import("src/architecture/network/activate/network.activate.utils.types").NoTraceNodeTraversalContext) => void`
|
|
1229
1229
|
|
|
1230
1230
|
Traverse nodes in activation order and write output activations into pooled storage.
|
|
1231
1231
|
|