@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
|
@@ -106,7 +106,7 @@ const propagationContext: LayerPropagationContext = { nodes: layer.nodes };
|
|
|
106
106
|
|
|
107
107
|
### activateLayer
|
|
108
108
|
|
|
109
|
-
`(context: import("
|
|
109
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerActivationContext, values: number[] | undefined, training: boolean) => number[]`
|
|
110
110
|
|
|
111
111
|
Orchestrates layer activation behavior with a high-level flow.
|
|
112
112
|
|
|
@@ -140,7 +140,7 @@ Returns: A cloned array of activation values.
|
|
|
140
140
|
|
|
141
141
|
### clearLayer
|
|
142
142
|
|
|
143
|
-
`(context: import("
|
|
143
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerConnectionContext) => void`
|
|
144
144
|
|
|
145
145
|
Orchestrates clearing node activation state with a high-level flow.
|
|
146
146
|
|
|
@@ -154,7 +154,7 @@ clearLayer(layerConnectionContext);
|
|
|
154
154
|
|
|
155
155
|
### connectLayer
|
|
156
156
|
|
|
157
|
-
`(context: import("
|
|
157
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerConnectionContext, target: import("src/architecture/node").default | import("src/architecture/group").default | import("src/architecture/layer/layer.utils.types").LayerLike, method: unknown, weight: number | undefined) => import("src/architecture/connection").default[]`
|
|
158
158
|
|
|
159
159
|
Orchestrates layer connection behavior with a high-level flow.
|
|
160
160
|
|
|
@@ -177,7 +177,7 @@ Returns: The created connection list.
|
|
|
177
177
|
|
|
178
178
|
### createAttentionLayer
|
|
179
179
|
|
|
180
|
-
`(context: import("
|
|
180
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number, heads: number) => TLayer`
|
|
181
181
|
|
|
182
182
|
Orchestrates attention layer creation with a high-level flow.
|
|
183
183
|
|
|
@@ -195,7 +195,7 @@ const attention = createAttentionLayer(factoryContext, 8, 4);
|
|
|
195
195
|
|
|
196
196
|
### createBatchNormLayer
|
|
197
197
|
|
|
198
|
-
`(context: import("
|
|
198
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
199
199
|
|
|
200
200
|
Orchestrates batch normalization layer creation with a high-level flow.
|
|
201
201
|
|
|
@@ -212,7 +212,7 @@ const batchNorm = createBatchNormLayer(factoryContext, 16);
|
|
|
212
212
|
|
|
213
213
|
### createConv1dLayer
|
|
214
214
|
|
|
215
|
-
`(context: import("
|
|
215
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number, kernelSize: number, stride: number, padding: number) => TLayer`
|
|
216
216
|
|
|
217
217
|
Orchestrates 1D convolution layer creation with a high-level flow.
|
|
218
218
|
|
|
@@ -232,7 +232,7 @@ const conv1d = createConv1dLayer(factoryContext, 8, 3);
|
|
|
232
232
|
|
|
233
233
|
### createDenseLayer
|
|
234
234
|
|
|
235
|
-
`(context: import("
|
|
235
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
236
236
|
|
|
237
237
|
Orchestrates dense layer creation with a high-level flow.
|
|
238
238
|
|
|
@@ -249,7 +249,7 @@ const dense = createDenseLayer(factoryContext, 8);
|
|
|
249
249
|
|
|
250
250
|
### createGruLayer
|
|
251
251
|
|
|
252
|
-
`(context: import("
|
|
252
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
253
253
|
|
|
254
254
|
Orchestrates GRU layer creation with a high-level flow.
|
|
255
255
|
|
|
@@ -266,7 +266,7 @@ const gru = createGruLayer(factoryContext, 8);
|
|
|
266
266
|
|
|
267
267
|
### createLayerNormLayer
|
|
268
268
|
|
|
269
|
-
`(context: import("
|
|
269
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
270
270
|
|
|
271
271
|
Orchestrates layer normalization layer creation with a high-level flow.
|
|
272
272
|
|
|
@@ -283,7 +283,7 @@ const layerNorm = createLayerNormLayer(factoryContext, 16);
|
|
|
283
283
|
|
|
284
284
|
### createLstmLayer
|
|
285
285
|
|
|
286
|
-
`(context: import("
|
|
286
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
287
287
|
|
|
288
288
|
Orchestrates LSTM layer creation with a high-level flow.
|
|
289
289
|
|
|
@@ -300,7 +300,7 @@ const lstm = createLstmLayer(factoryContext, 8);
|
|
|
300
300
|
|
|
301
301
|
### createMemoryLayer
|
|
302
302
|
|
|
303
|
-
`(context: import("
|
|
303
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number, memory: number) => TLayer`
|
|
304
304
|
|
|
305
305
|
Orchestrates Memory layer creation with a high-level flow.
|
|
306
306
|
|
|
@@ -318,7 +318,7 @@ const memoryLayer = createMemoryLayer(factoryContext, 4, 3);
|
|
|
318
318
|
|
|
319
319
|
### disconnectLayer
|
|
320
320
|
|
|
321
|
-
`(context: import("
|
|
321
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerConnectionContext, target: import("src/architecture/node").default | import("src/architecture/group").default, twoSided: boolean) => void`
|
|
322
322
|
|
|
323
323
|
Orchestrates disconnection behavior with a high-level flow.
|
|
324
324
|
|
|
@@ -335,7 +335,7 @@ Parameters:
|
|
|
335
335
|
|
|
336
336
|
### gateLayer
|
|
337
337
|
|
|
338
|
-
`(context: import("
|
|
338
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerConnectionContext, connections: import("src/architecture/connection").default[], method: unknown) => void`
|
|
339
339
|
|
|
340
340
|
Orchestrates layer gating behavior with a high-level flow.
|
|
341
341
|
|
|
@@ -352,7 +352,7 @@ Parameters:
|
|
|
352
352
|
|
|
353
353
|
### inputLayer
|
|
354
354
|
|
|
355
|
-
`(context: import("
|
|
355
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerConnectionContext, from: import("src/architecture/group").default | import("src/architecture/layer/layer.utils.types").LayerLike, method: unknown, weight: number | undefined) => import("src/architecture/connection").default[]`
|
|
356
356
|
|
|
357
357
|
Orchestrates layer input wiring with a high-level flow.
|
|
358
358
|
|
|
@@ -372,7 +372,7 @@ Returns: The created connection list.
|
|
|
372
372
|
|
|
373
373
|
### propagateLayer
|
|
374
374
|
|
|
375
|
-
`(context: import("
|
|
375
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerPropagationContext, rate: number, momentum: number, targets: number[] | undefined) => void`
|
|
376
376
|
|
|
377
377
|
Orchestrates layer backpropagation behavior with a high-level flow.
|
|
378
378
|
|
|
@@ -450,7 +450,7 @@ Returns: A pooled output array.
|
|
|
450
450
|
|
|
451
451
|
### applyLayerMask
|
|
452
452
|
|
|
453
|
-
`(nodeList: import("
|
|
453
|
+
`(nodeList: import("src/architecture/node").default[], mask: number) => void`
|
|
454
454
|
|
|
455
455
|
Applies one mask value to every node in the layer.
|
|
456
456
|
|
|
@@ -520,7 +520,7 @@ Returns: A cloned output array.
|
|
|
520
520
|
|
|
521
521
|
### fillActivationOutput
|
|
522
522
|
|
|
523
|
-
`(nodeList: import("
|
|
523
|
+
`(nodeList: import("src/architecture/node").default[], inputValues: number[] | undefined, output: number[]) => void`
|
|
524
524
|
|
|
525
525
|
Activates each node and writes outputs into the provided buffer.
|
|
526
526
|
|
|
@@ -588,7 +588,7 @@ Returns: A mask value of 1 or 0 for all nodes in the layer.
|
|
|
588
588
|
|
|
589
589
|
### clearLayer
|
|
590
590
|
|
|
591
|
-
`(context: import("
|
|
591
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerConnectionContext) => void`
|
|
592
592
|
|
|
593
593
|
Clears activation state for all nodes in a layer.
|
|
594
594
|
|
|
@@ -606,7 +606,7 @@ Parameters:
|
|
|
606
606
|
|
|
607
607
|
### connectLayer
|
|
608
608
|
|
|
609
|
-
`(context: import("
|
|
609
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerConnectionContext, target: import("src/architecture/node").default | import("src/architecture/group").default | import("src/architecture/layer/layer.utils.types").LayerLike, method: unknown, weight: number | undefined) => import("src/architecture/connection").default[]`
|
|
610
610
|
|
|
611
611
|
Connects a layer's output group to a target.
|
|
612
612
|
|
|
@@ -638,7 +638,7 @@ Returns: The created connection list.
|
|
|
638
638
|
|
|
639
639
|
### disconnectFromGroup
|
|
640
640
|
|
|
641
|
-
`(layerNodes: import("
|
|
641
|
+
`(layerNodes: import("src/architecture/node").default[], targetGroup: import("src/architecture/group").default, layerConnections: { in: import("src/architecture/connection").default[]; out: import("src/architecture/connection").default[]; self: import("src/architecture/connection").default[]; }, removeTwoSided: boolean) => void`
|
|
642
642
|
|
|
643
643
|
Disconnects all layer nodes from a target group.
|
|
644
644
|
|
|
@@ -653,7 +653,7 @@ Parameters:
|
|
|
653
653
|
|
|
654
654
|
### disconnectFromNode
|
|
655
655
|
|
|
656
|
-
`(layerNodes: import("
|
|
656
|
+
`(layerNodes: import("src/architecture/node").default[], targetNode: import("src/architecture/node").default, layerConnections: { in: import("src/architecture/connection").default[]; out: import("src/architecture/connection").default[]; self: import("src/architecture/connection").default[]; }, removeTwoSided: boolean) => void`
|
|
657
657
|
|
|
658
658
|
Disconnects all layer nodes from a target node.
|
|
659
659
|
|
|
@@ -665,7 +665,7 @@ Parameters:
|
|
|
665
665
|
|
|
666
666
|
### disconnectLayer
|
|
667
667
|
|
|
668
|
-
`(context: import("
|
|
668
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerConnectionContext, target: import("src/architecture/node").default | import("src/architecture/group").default, twoSided: boolean) => void`
|
|
669
669
|
|
|
670
670
|
Disconnects nodes in this layer from a target group or node.
|
|
671
671
|
|
|
@@ -686,7 +686,7 @@ Parameters:
|
|
|
686
686
|
|
|
687
687
|
### gateLayer
|
|
688
688
|
|
|
689
|
-
`(context: import("
|
|
689
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerConnectionContext, connections: import("src/architecture/connection").default[], method: unknown) => void`
|
|
690
690
|
|
|
691
691
|
Applies gating to the provided connections using the layer output group.
|
|
692
692
|
|
|
@@ -709,7 +709,7 @@ Parameters:
|
|
|
709
709
|
|
|
710
710
|
### inputLayer
|
|
711
711
|
|
|
712
|
-
`(context: import("
|
|
712
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerConnectionContext, from: import("src/architecture/group").default | import("src/architecture/layer/layer.utils.types").LayerLike, method: unknown, weight: number | undefined) => import("src/architecture/connection").default[]`
|
|
713
713
|
|
|
714
714
|
Connects a source group or layer to this layer's input target.
|
|
715
715
|
|
|
@@ -740,7 +740,7 @@ Returns: The created connection list.
|
|
|
740
740
|
|
|
741
741
|
### removeIncomingConnection
|
|
742
742
|
|
|
743
|
-
`(layerConnections: { in: import("
|
|
743
|
+
`(layerConnections: { in: import("src/architecture/connection").default[]; out: import("src/architecture/connection").default[]; self: import("src/architecture/connection").default[]; }, sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => void`
|
|
744
744
|
|
|
745
745
|
Removes an incoming connection from layer tracking.
|
|
746
746
|
|
|
@@ -753,7 +753,7 @@ Parameters:
|
|
|
753
753
|
|
|
754
754
|
### removeOutgoingConnection
|
|
755
755
|
|
|
756
|
-
`(layerConnections: { in: import("
|
|
756
|
+
`(layerConnections: { in: import("src/architecture/connection").default[]; out: import("src/architecture/connection").default[]; self: import("src/architecture/connection").default[]; }, sourceNode: import("src/architecture/node").default, targetNode: import("src/architecture/node").default) => void`
|
|
757
757
|
|
|
758
758
|
Removes an outgoing connection from layer tracking.
|
|
759
759
|
|
|
@@ -788,7 +788,7 @@ Parameters:
|
|
|
788
788
|
|
|
789
789
|
### propagateNodesInReverse
|
|
790
790
|
|
|
791
|
-
`(context: import("
|
|
791
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerPropagationContext, rate: number, momentum: number, targets: number[] | undefined) => void`
|
|
792
792
|
|
|
793
793
|
Propagates errors through all nodes in reverse order.
|
|
794
794
|
|
|
@@ -822,7 +822,7 @@ Parameters:
|
|
|
822
822
|
|
|
823
823
|
### buildDenseLayer
|
|
824
824
|
|
|
825
|
-
`(context: import("
|
|
825
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
826
826
|
|
|
827
827
|
Builds a standard dense (fully connected) layer.
|
|
828
828
|
|
|
@@ -854,7 +854,7 @@ dense.input(previousLayerLike);
|
|
|
854
854
|
|
|
855
855
|
### buildGruLayer
|
|
856
856
|
|
|
857
|
-
`(context: import("
|
|
857
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
858
858
|
|
|
859
859
|
Builds a GRU layer using the provided factory context.
|
|
860
860
|
|
|
@@ -878,7 +878,7 @@ gru.input(previousLayerLike);
|
|
|
878
878
|
|
|
879
879
|
### buildLstmLayer
|
|
880
880
|
|
|
881
|
-
`(context: import("
|
|
881
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
882
882
|
|
|
883
883
|
Builds an LSTM layer using the provided factory context.
|
|
884
884
|
|
|
@@ -908,7 +908,7 @@ lstm.input(previousLayerLike);
|
|
|
908
908
|
|
|
909
909
|
### buildMemoryLayer
|
|
910
910
|
|
|
911
|
-
`(context: import("
|
|
911
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number, memory: number) => TLayer`
|
|
912
912
|
|
|
913
913
|
Builds a Memory layer using the provided factory context.
|
|
914
914
|
|
|
@@ -936,7 +936,7 @@ memoryLayer.input(previousLayerLike);
|
|
|
936
936
|
|
|
937
937
|
### flattenConnections
|
|
938
938
|
|
|
939
|
-
`(connectionLists: import("
|
|
939
|
+
`(connectionLists: import("src/architecture/connection").default[][]) => import("src/architecture/connection").default[]`
|
|
940
940
|
|
|
941
941
|
Flattens grouped connection arrays into a single list.
|
|
942
942
|
|
|
@@ -976,7 +976,7 @@ const method = resolveConnectionMethod(undefined);
|
|
|
976
976
|
|
|
977
977
|
### resolveSourceGroup
|
|
978
978
|
|
|
979
|
-
`(factoryContext: import("
|
|
979
|
+
`(factoryContext: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, from: import("src/architecture/group").default | import("src/architecture/layer/layer.utils.types").LayerLike) => import("src/architecture/group").default`
|
|
980
980
|
|
|
981
981
|
Resolves a source group from a layer-like or group input.
|
|
982
982
|
|
|
@@ -1019,7 +1019,7 @@ const outputs = activateStubNodes(layer);
|
|
|
1019
1019
|
|
|
1020
1020
|
### buildAttentionLayer
|
|
1021
1021
|
|
|
1022
|
-
`(context: import("
|
|
1022
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number, heads: number) => TLayer`
|
|
1023
1023
|
|
|
1024
1024
|
Builds a lightweight attention-style stub layer.
|
|
1025
1025
|
|
|
@@ -1048,7 +1048,7 @@ const out = attention.activate([1, 2, 3, 4]);
|
|
|
1048
1048
|
|
|
1049
1049
|
### buildConv1dLayer
|
|
1050
1050
|
|
|
1051
|
-
`(context: import("
|
|
1051
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number, kernelSize: number, stride: number, padding: number) => TLayer`
|
|
1052
1052
|
|
|
1053
1053
|
Builds a lightweight Conv1D-style stub layer.
|
|
1054
1054
|
|
|
@@ -1130,7 +1130,7 @@ activate([9, 8, 7, 6]); // -> [9, 8, 7]
|
|
|
1130
1130
|
|
|
1131
1131
|
### createStubLayer
|
|
1132
1132
|
|
|
1133
|
-
`(context: import("
|
|
1133
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
1134
1134
|
|
|
1135
1135
|
Creates shared node/output scaffolding for experimental layers.
|
|
1136
1136
|
|
|
@@ -1176,7 +1176,7 @@ Example (conceptual flow):
|
|
|
1176
1176
|
|
|
1177
1177
|
### buildBatchNormLayer
|
|
1178
1178
|
|
|
1179
|
-
`(context: import("
|
|
1179
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
1180
1180
|
|
|
1181
1181
|
Builds a dense layer decorated with batch-style normalization.
|
|
1182
1182
|
|
|
@@ -1204,7 +1204,7 @@ const normalized = buildBatchNormLayer(factoryContext, 16);
|
|
|
1204
1204
|
|
|
1205
1205
|
### buildLayerNormLayer
|
|
1206
1206
|
|
|
1207
|
-
`(context: import("
|
|
1207
|
+
`(context: import("src/architecture/layer/layer.utils.types").LayerFactoryContext<TLayer>, size: number) => TLayer`
|
|
1208
1208
|
|
|
1209
1209
|
Builds a dense layer decorated with layer-style normalization.
|
|
1210
1210
|
|
|
@@ -295,7 +295,7 @@ Internal normalized evolution config.
|
|
|
295
295
|
|
|
296
296
|
### EvolutionFitnessFunction
|
|
297
297
|
|
|
298
|
-
`(arg0: import("
|
|
298
|
+
`(arg0: import("src/architecture/network").default & import("src/architecture/network").default[]) => number | Promise<void>`
|
|
299
299
|
|
|
300
300
|
Unified evolution fitness callback shape.
|
|
301
301
|
|
|
@@ -509,7 +509,7 @@ Smoothing can make early stopping and progress logging less noisy.
|
|
|
509
509
|
|
|
510
510
|
### MutationHandler
|
|
511
511
|
|
|
512
|
-
`(method: import("
|
|
512
|
+
`(method: import("src/architecture/network/network.types").MutationMethod | undefined) => void`
|
|
513
513
|
|
|
514
514
|
Mutation handler function contract.
|
|
515
515
|
|
|
@@ -951,7 +951,7 @@ while keeping the ONNX parser itself mostly pure.
|
|
|
951
951
|
|
|
952
952
|
### OnnxRuntimeLayerFactory
|
|
953
953
|
|
|
954
|
-
`(size: number) => import("
|
|
954
|
+
`(size: number) => import("src/architecture/layer").default`
|
|
955
955
|
|
|
956
956
|
Runtime layer-constructor signature used for recurrent layer reconstruction.
|
|
957
957
|
|
|
@@ -970,7 +970,7 @@ This is the minimal set of recurrent factories needed by the importer.
|
|
|
970
970
|
|
|
971
971
|
### OnnxRuntimePerceptronFactory
|
|
972
972
|
|
|
973
|
-
`(sizes: number[]) => import("
|
|
973
|
+
`(sizes: number[]) => import("src/architecture/network").default`
|
|
974
974
|
|
|
975
975
|
Runtime perceptron factory signature used by ONNX import orchestration.
|
|
976
976
|
|
|
@@ -1103,7 +1103,7 @@ Per-pool-key allocation & reuse counters (educational / diagnostics).
|
|
|
1103
1103
|
|
|
1104
1104
|
### PopulationFitnessFunction
|
|
1105
1105
|
|
|
1106
|
-
`(population: import("
|
|
1106
|
+
`(population: import("src/architecture/network").default[]) => Promise<void>`
|
|
1107
1107
|
|
|
1108
1108
|
Fitness signature evaluating full population asynchronously.
|
|
1109
1109
|
|
|
@@ -1272,7 +1272,7 @@ Shared parameters for constructing a Gemm node payload.
|
|
|
1272
1272
|
|
|
1273
1273
|
### SingleGenomeFitnessFunction
|
|
1274
1274
|
|
|
1275
|
-
`(genome: import("
|
|
1275
|
+
`(genome: import("src/architecture/network").default) => number`
|
|
1276
1276
|
|
|
1277
1277
|
Fitness signature evaluating one genome.
|
|
1278
1278
|
|
|
@@ -1453,7 +1453,7 @@ Returns: Implementation-defined result of Network.activate (typically an output
|
|
|
1453
1453
|
|
|
1454
1454
|
### applyGradientClippingImpl
|
|
1455
1455
|
|
|
1456
|
-
`(net: import("
|
|
1456
|
+
`(net: import("src/architecture/network").default, cfg: import("src/architecture/network/training/network.training.utils.types").GradientClipRuntimeConfig) => void`
|
|
1457
1457
|
|
|
1458
1458
|
Apply gradient clipping to a network using a normalized runtime configuration.
|
|
1459
1459
|
|
|
@@ -1505,7 +1505,7 @@ Design Notes:
|
|
|
1505
1505
|
|
|
1506
1506
|
### connect
|
|
1507
1507
|
|
|
1508
|
-
`(from: import("
|
|
1508
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default, weight: number | undefined) => import("src/architecture/connection").default[]`
|
|
1509
1509
|
|
|
1510
1510
|
Create and register one (or multiple) directed connection objects between two nodes.
|
|
1511
1511
|
|
|
@@ -1538,9 +1538,11 @@ Parameters:
|
|
|
1538
1538
|
- `to` - - Target node (receives signal).
|
|
1539
1539
|
- `weight` - - Optional explicit initial weight value.
|
|
1540
1540
|
|
|
1541
|
+
Returns: Array of created {@link Connection} objects (possibly empty if acyclicity rejected the edge).
|
|
1542
|
+
|
|
1541
1543
|
### createMLP
|
|
1542
1544
|
|
|
1543
|
-
`(inputCount: number, hiddenCounts: number[], outputCount: number) => import("
|
|
1545
|
+
`(inputCount: number, hiddenCounts: number[], outputCount: number) => import("src/architecture/network").default`
|
|
1544
1546
|
|
|
1545
1547
|
Build a strictly layered and fully connected MLP network.
|
|
1546
1548
|
|
|
@@ -1554,7 +1556,7 @@ Returns: Newly created MLP network.
|
|
|
1554
1556
|
|
|
1555
1557
|
### crossOver
|
|
1556
1558
|
|
|
1557
|
-
`(parentNetwork1: import("
|
|
1559
|
+
`(parentNetwork1: import("src/architecture/network").default, parentNetwork2: import("src/architecture/network").default, equal: boolean) => import("src/architecture/network").default`
|
|
1558
1560
|
|
|
1559
1561
|
Genetic operator: NEAT‑style crossover (legacy merge operator removed).
|
|
1560
1562
|
|
|
@@ -1571,7 +1573,7 @@ Design notes:
|
|
|
1571
1573
|
|
|
1572
1574
|
### describeArchitecture
|
|
1573
1575
|
|
|
1574
|
-
`(network: import("
|
|
1576
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").NetworkArchitectureDescriptor`
|
|
1575
1577
|
|
|
1576
1578
|
Describes network architecture for diagnostics, telemetry, and UI rendering.
|
|
1577
1579
|
|
|
@@ -1591,11 +1593,11 @@ Returns: Stable architecture descriptor.
|
|
|
1591
1593
|
|
|
1592
1594
|
### deserialize
|
|
1593
1595
|
|
|
1594
|
-
`(data: import("
|
|
1596
|
+
`(data: import("src/architecture/network/network.types").CompactSerializedNetworkTuple, inputSize: number | undefined, outputSize: number | undefined) => import("src/architecture/network").default`
|
|
1595
1597
|
|
|
1596
1598
|
### disconnect
|
|
1597
1599
|
|
|
1598
|
-
`(from: import("
|
|
1600
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default) => void`
|
|
1599
1601
|
|
|
1600
1602
|
Remove (at most) one directed connection from source 'from' to target 'to'.
|
|
1601
1603
|
|
|
@@ -1626,7 +1628,7 @@ Parameters:
|
|
|
1626
1628
|
|
|
1627
1629
|
### evolveNetwork
|
|
1628
1630
|
|
|
1629
|
-
`(set: import("
|
|
1631
|
+
`(set: import("src/architecture/network/network.types").TrainingSample[], options: import("src/architecture/network/network.types").EvolveOptions) => Promise<{ error: number; iterations: number; time: number; }>`
|
|
1630
1632
|
|
|
1631
1633
|
Evolves a network with a NEAT-style search loop until an error target or generation limit is reached.
|
|
1632
1634
|
|
|
@@ -1671,11 +1673,11 @@ Returns: Output activations (detached plain array) of length `network.output`.
|
|
|
1671
1673
|
|
|
1672
1674
|
### fromJSONImpl
|
|
1673
1675
|
|
|
1674
|
-
`(json: import("
|
|
1676
|
+
`(json: import("src/architecture/network/network.types").NetworkJSON) => import("src/architecture/network").default`
|
|
1675
1677
|
|
|
1676
1678
|
### gate
|
|
1677
1679
|
|
|
1678
|
-
`(node: import("
|
|
1680
|
+
`(node: import("src/architecture/node").default, connection: import("src/architecture/connection").default) => void`
|
|
1679
1681
|
|
|
1680
1682
|
Attach a gater node to a connection so that the connection's effective weight
|
|
1681
1683
|
becomes dynamically modulated by the gater's activation (see {@link Node.gate} for exact math).
|
|
@@ -1704,7 +1706,7 @@ Returns: Standard normal sample with mean 0 and variance 1.
|
|
|
1704
1706
|
|
|
1705
1707
|
### generateStandalone
|
|
1706
1708
|
|
|
1707
|
-
`(net: import("
|
|
1709
|
+
`(net: import("src/architecture/network").default) => string`
|
|
1708
1710
|
|
|
1709
1711
|
Standalone forward pass code generator.
|
|
1710
1712
|
|
|
@@ -1734,7 +1736,7 @@ Not Supported / Simplifications:
|
|
|
1734
1736
|
|
|
1735
1737
|
### getConnectionSlab
|
|
1736
1738
|
|
|
1737
|
-
`() => import("
|
|
1739
|
+
`() => import("src/architecture/network/slab/network.slab.utils.types").ConnectionSlabView`
|
|
1738
1740
|
|
|
1739
1741
|
Obtain (and lazily rebuild if dirty) the current packed SoA view of connections.
|
|
1740
1742
|
|
|
@@ -1782,7 +1784,7 @@ Returns: Numeric RNG state value, or `undefined` when no deterministic state exi
|
|
|
1782
1784
|
|
|
1783
1785
|
### getSlabAllocationStats
|
|
1784
1786
|
|
|
1785
|
-
`() => { pool: { [x: string]: import("
|
|
1787
|
+
`() => { pool: { [x: string]: import("src/architecture/network/slab/network.slab.utils.types").PoolKeyMetrics; }; fresh: number; pooled: number; }`
|
|
1786
1788
|
|
|
1787
1789
|
Slab Packing / Structure‑of‑Arrays Backend (Educational Module)
|
|
1788
1790
|
==============================================================
|
|
@@ -1816,7 +1818,7 @@ console.log('First weight from->to', slab.weights[0], slab.from[0], slab.to[0]);
|
|
|
1816
1818
|
|
|
1817
1819
|
### hasPath
|
|
1818
1820
|
|
|
1819
|
-
`(from: import("
|
|
1821
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default) => boolean`
|
|
1820
1822
|
|
|
1821
1823
|
Depth-first reachability test (avoids infinite loops via visited set).
|
|
1822
1824
|
|
|
@@ -1844,7 +1846,7 @@ Internal State Fields (attached to Network via `any` casting):
|
|
|
1844
1846
|
|
|
1845
1847
|
### mutateImpl
|
|
1846
1848
|
|
|
1847
|
-
`(method: import("
|
|
1849
|
+
`(method: import("src/architecture/network/network.types").MutationMethod | undefined) => void`
|
|
1848
1850
|
|
|
1849
1851
|
Public entry point: apply a single mutation operator to the network.
|
|
1850
1852
|
|
|
@@ -1903,7 +1905,7 @@ Returns: Array of output neuron activations (length == network.output).
|
|
|
1903
1905
|
|
|
1904
1906
|
### propagate
|
|
1905
1907
|
|
|
1906
|
-
`(rate: number, momentum: number, update: boolean, target: number[], regularization: number, costDerivative: import("
|
|
1908
|
+
`(rate: number, momentum: number, update: boolean, target: number[], regularization: number, costDerivative: import("src/architecture/network/training/network.training.utils.types").CostDerivative | undefined) => void`
|
|
1907
1909
|
|
|
1908
1910
|
Propagate output and hidden errors backward through the network.
|
|
1909
1911
|
|
|
@@ -1918,7 +1920,7 @@ Parameters:
|
|
|
1918
1920
|
|
|
1919
1921
|
### pruneToSparsity
|
|
1920
1922
|
|
|
1921
|
-
`(targetSparsity: number, method: import("
|
|
1923
|
+
`(targetSparsity: number, method: import("src/architecture/network/network.types").PruningMethod) => void`
|
|
1922
1924
|
|
|
1923
1925
|
Evolutionary (generation-based) pruning toward a target sparsity baseline.
|
|
1924
1926
|
Unlike maybePrune this operates immediately relative to the first invocation's connection count
|
|
@@ -1932,7 +1934,7 @@ Returns: Nothing.
|
|
|
1932
1934
|
|
|
1933
1935
|
### rebuildConnections
|
|
1934
1936
|
|
|
1935
|
-
`(networkInstance: import("
|
|
1937
|
+
`(networkInstance: import("src/architecture/network").default) => void`
|
|
1936
1938
|
|
|
1937
1939
|
Rebuild the canonical connection array from per-node outgoing lists.
|
|
1938
1940
|
|
|
@@ -1982,7 +1984,7 @@ Returns: Promise resolving once rebuild completes.
|
|
|
1982
1984
|
|
|
1983
1985
|
### removeNode
|
|
1984
1986
|
|
|
1985
|
-
`(node: import("
|
|
1987
|
+
`(node: import("src/architecture/node").default) => void`
|
|
1986
1988
|
|
|
1987
1989
|
Node removal utilities.
|
|
1988
1990
|
|
|
@@ -2032,7 +2034,7 @@ Returns: Nothing.
|
|
|
2032
2034
|
|
|
2033
2035
|
### serialize
|
|
2034
2036
|
|
|
2035
|
-
`() => import("
|
|
2037
|
+
`() => import("src/architecture/network/network.types").CompactSerializedNetworkTuple`
|
|
2036
2038
|
|
|
2037
2039
|
Serializes a network instance into the compact tuple format.
|
|
2038
2040
|
|
|
@@ -2080,7 +2082,7 @@ Returns: Nothing.
|
|
|
2080
2082
|
|
|
2081
2083
|
### snapshotRNG
|
|
2082
2084
|
|
|
2083
|
-
`() => import("
|
|
2085
|
+
`() => import("src/architecture/network/network.types").RNGSnapshot`
|
|
2084
2086
|
|
|
2085
2087
|
Captures the current deterministic RNG lifecycle state as a portable snapshot.
|
|
2086
2088
|
|
|
@@ -2109,7 +2111,7 @@ Returns: Mean error and evaluation duration.
|
|
|
2109
2111
|
|
|
2110
2112
|
### toJSONImpl
|
|
2111
2113
|
|
|
2112
|
-
`() => import("
|
|
2114
|
+
`() => import("src/architecture/network/network.types").NetworkJSON`
|
|
2113
2115
|
|
|
2114
2116
|
Serializes a network instance into the verbose JSON format.
|
|
2115
2117
|
|
|
@@ -2123,7 +2125,7 @@ Returns: Versioned JSON payload with shape metadata, nodes, and connections.
|
|
|
2123
2125
|
|
|
2124
2126
|
### trainImpl
|
|
2125
2127
|
|
|
2126
|
-
`(net: import("
|
|
2128
|
+
`(net: import("src/architecture/network").default, set: import("src/architecture/network/training/network.training.utils.types").TrainingSample[], options: import("src/architecture/network/network.types").TrainingOptions) => { error: number; iterations: number; time: number; }`
|
|
2127
2129
|
|
|
2128
2130
|
High-level training orchestration with early stopping, smoothing & callbacks.
|
|
2129
2131
|
|
|
@@ -2138,7 +2140,7 @@ Returns: Summary payload containing final error, iteration count, and elapsed ti
|
|
|
2138
2140
|
|
|
2139
2141
|
### trainSetImpl
|
|
2140
2142
|
|
|
2141
|
-
`(net: import("
|
|
2143
|
+
`(net: import("src/architecture/network").default, set: import("src/architecture/network/training/network.training.utils.types").TrainingSample[], batchSize: number, accumulationSteps: number, currentRate: number, momentum: number, regularization: import("src/architecture/network/network.types").RegularizationConfig, costFunction: import("src/architecture/network/network.types").CostFunction | import("src/architecture/network/network.types").CostFunctionOrObject, optimizer: import("src/architecture/network/network.types").OptimizerConfigBase | undefined) => number`
|
|
2142
2144
|
|
|
2143
2145
|
Execute one full pass over dataset (epoch) with optional accumulation & adaptive optimizer.
|
|
2144
2146
|
Returns mean cost across processed samples.
|
|
@@ -2160,7 +2162,7 @@ Returns: Mean cost across the processed samples.
|
|
|
2160
2162
|
|
|
2161
2163
|
### ungate
|
|
2162
2164
|
|
|
2163
|
-
`(connection: import("
|
|
2165
|
+
`(connection: import("src/architecture/connection").default) => void`
|
|
2164
2166
|
|
|
2165
2167
|
Remove gating from a connection, restoring its static weight contribution.
|
|
2166
2168
|
|