@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
|
@@ -51,7 +51,7 @@ Design Notes:
|
|
|
51
51
|
|
|
52
52
|
### createMLP
|
|
53
53
|
|
|
54
|
-
`(inputCount: number, hiddenCounts: number[], outputCount: number) => import("
|
|
54
|
+
`(inputCount: number, hiddenCounts: number[], outputCount: number) => import("src/architecture/network").default`
|
|
55
55
|
|
|
56
56
|
Build a strictly layered and fully connected MLP network.
|
|
57
57
|
|
|
@@ -65,13 +65,13 @@ Returns: Newly created MLP network.
|
|
|
65
65
|
|
|
66
66
|
### hasPath
|
|
67
67
|
|
|
68
|
-
`(from: import("
|
|
68
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default) => boolean`
|
|
69
69
|
|
|
70
70
|
Depth-first reachability test (avoids infinite loops via visited set).
|
|
71
71
|
|
|
72
72
|
### rebuildConnections
|
|
73
73
|
|
|
74
|
-
`(networkInstance: import("
|
|
74
|
+
`(networkInstance: import("src/architecture/network").default) => void`
|
|
75
75
|
|
|
76
76
|
Rebuild the canonical connection array from per-node outgoing lists.
|
|
77
77
|
|
|
@@ -82,7 +82,7 @@ Parameters:
|
|
|
82
82
|
|
|
83
83
|
### appendTopoNode
|
|
84
84
|
|
|
85
|
-
`(topoOrder: import("
|
|
85
|
+
`(topoOrder: import("src/architecture/node").default[], node: import("src/architecture/node").default) => void`
|
|
86
86
|
|
|
87
87
|
Append one node to topological order output.
|
|
88
88
|
|
|
@@ -94,7 +94,7 @@ Returns: Void.
|
|
|
94
94
|
|
|
95
95
|
### decrementNodeInDegree
|
|
96
96
|
|
|
97
|
-
`(buildContext: import("
|
|
97
|
+
`(buildContext: import("src/architecture/network/network.types").TopologyBuildContext, node: import("src/architecture/node").default) => number`
|
|
98
98
|
|
|
99
99
|
Decrement node in-degree and return remaining value.
|
|
100
100
|
|
|
@@ -106,7 +106,7 @@ Returns: Remaining in-degree after decrement.
|
|
|
106
106
|
|
|
107
107
|
### getInDegree
|
|
108
108
|
|
|
109
|
-
`(buildContext: import("
|
|
109
|
+
`(buildContext: import("src/architecture/network/network.types").TopologyBuildContext, node: import("src/architecture/node").default) => number`
|
|
110
110
|
|
|
111
111
|
Read in-degree for a node with zero fallback.
|
|
112
112
|
|
|
@@ -118,7 +118,7 @@ Returns: In-degree value.
|
|
|
118
118
|
|
|
119
119
|
### isInputNode
|
|
120
120
|
|
|
121
|
-
`(node: import("
|
|
121
|
+
`(node: import("src/architecture/node").default) => boolean`
|
|
122
122
|
|
|
123
123
|
Test whether a node is an input node.
|
|
124
124
|
|
|
@@ -129,7 +129,7 @@ Returns: True when node type is input.
|
|
|
129
129
|
|
|
130
130
|
### isQueueSeedNode
|
|
131
131
|
|
|
132
|
-
`(node: import("
|
|
132
|
+
`(node: import("src/architecture/node").default, buildContext: import("src/architecture/network/network.types").TopologyBuildContext) => boolean`
|
|
133
133
|
|
|
134
134
|
Determine whether a node belongs in the initial queue.
|
|
135
135
|
|
|
@@ -141,7 +141,7 @@ Returns: True when node is input-type or has zero in-degree.
|
|
|
141
141
|
|
|
142
142
|
### isSelfConnection
|
|
143
143
|
|
|
144
|
-
`(from: import("
|
|
144
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default) => boolean`
|
|
145
145
|
|
|
146
146
|
Test whether a connection is a self-loop.
|
|
147
147
|
|
|
@@ -153,7 +153,7 @@ Returns: True when source and target are the same node.
|
|
|
153
153
|
|
|
154
154
|
### processKahnQueue
|
|
155
155
|
|
|
156
|
-
`(buildContext: import("
|
|
156
|
+
`(buildContext: import("src/architecture/network/network.types").TopologyBuildContext) => void`
|
|
157
157
|
|
|
158
158
|
Process queue until all available nodes are emitted.
|
|
159
159
|
|
|
@@ -164,7 +164,7 @@ Returns: Void.
|
|
|
164
164
|
|
|
165
165
|
### relaxOutgoingEdges
|
|
166
166
|
|
|
167
|
-
`(buildContext: import("
|
|
167
|
+
`(buildContext: import("src/architecture/network/network.types").TopologyBuildContext, currentNode: import("src/architecture/node").default) => void`
|
|
168
168
|
|
|
169
169
|
Relax outgoing edges for one processed node.
|
|
170
170
|
|
|
@@ -176,7 +176,7 @@ Returns: Void.
|
|
|
176
176
|
|
|
177
177
|
### seedProcessingQueue
|
|
178
178
|
|
|
179
|
-
`(buildContext: import("
|
|
179
|
+
`(buildContext: import("src/architecture/network/network.types").TopologyBuildContext) => void`
|
|
180
180
|
|
|
181
181
|
Seed Kahn queue with input nodes and zero in-degree nodes.
|
|
182
182
|
|
|
@@ -187,7 +187,7 @@ Returns: Void.
|
|
|
187
187
|
|
|
188
188
|
### takeNextQueueNode
|
|
189
189
|
|
|
190
|
-
`(processingQueue: import("
|
|
190
|
+
`(processingQueue: import("src/architecture/node").default[]) => import("src/architecture/node").default`
|
|
191
191
|
|
|
192
192
|
Shift and return the next queue node.
|
|
193
193
|
|
|
@@ -200,7 +200,7 @@ Returns: Next node.
|
|
|
200
200
|
|
|
201
201
|
### createPathSearchContext
|
|
202
202
|
|
|
203
|
-
`(from: import("
|
|
203
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default) => import("src/architecture/network/network.types").PathSearchContext`
|
|
204
204
|
|
|
205
205
|
Create DFS search context.
|
|
206
206
|
|
|
@@ -212,7 +212,7 @@ Returns: Initialized path-search context.
|
|
|
212
212
|
|
|
213
213
|
### hasVisitedNode
|
|
214
214
|
|
|
215
|
-
`(visitedNodes: Set<import("
|
|
215
|
+
`(visitedNodes: Set<import("src/architecture/node").default>, node: import("src/architecture/node").default) => boolean`
|
|
216
216
|
|
|
217
217
|
Test whether a node has already been visited.
|
|
218
218
|
|
|
@@ -224,7 +224,7 @@ Returns: True when node is already visited.
|
|
|
224
224
|
|
|
225
225
|
### isSameNode
|
|
226
226
|
|
|
227
|
-
`(leftNode: import("
|
|
227
|
+
`(leftNode: import("src/architecture/node").default, rightNode: import("src/architecture/node").default) => boolean`
|
|
228
228
|
|
|
229
229
|
Compare node identity.
|
|
230
230
|
|
|
@@ -236,7 +236,7 @@ Returns: True when references are identical.
|
|
|
236
236
|
|
|
237
237
|
### isSelfConnection
|
|
238
238
|
|
|
239
|
-
`(from: import("
|
|
239
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default) => boolean`
|
|
240
240
|
|
|
241
241
|
Test whether a connection is a self-loop.
|
|
242
242
|
|
|
@@ -248,7 +248,7 @@ Returns: True when source and target are the same node.
|
|
|
248
248
|
|
|
249
249
|
### markVisited
|
|
250
250
|
|
|
251
|
-
`(visitedNodes: Set<import("
|
|
251
|
+
`(visitedNodes: Set<import("src/architecture/node").default>, node: import("src/architecture/node").default) => void`
|
|
252
252
|
|
|
253
253
|
Mark a node as visited.
|
|
254
254
|
|
|
@@ -260,7 +260,7 @@ Returns: Void.
|
|
|
260
260
|
|
|
261
261
|
### pushOutgoingTargets
|
|
262
262
|
|
|
263
|
-
`(nodesToVisitStack: import("
|
|
263
|
+
`(nodesToVisitStack: import("src/architecture/node").default[], currentNode: import("src/architecture/node").default) => void`
|
|
264
264
|
|
|
265
265
|
Push non-self outgoing targets to DFS stack.
|
|
266
266
|
|
|
@@ -272,7 +272,7 @@ Returns: Void.
|
|
|
272
272
|
|
|
273
273
|
### takeNextStackNode
|
|
274
274
|
|
|
275
|
-
`(nodesToVisitStack: import("
|
|
275
|
+
`(nodesToVisitStack: import("src/architecture/node").default[]) => import("src/architecture/node").default`
|
|
276
276
|
|
|
277
277
|
Pop and return next DFS stack node.
|
|
278
278
|
|
|
@@ -283,7 +283,7 @@ Returns: Next node to process.
|
|
|
283
283
|
|
|
284
284
|
### traversePathSearch
|
|
285
285
|
|
|
286
|
-
`(searchContext: import("
|
|
286
|
+
`(searchContext: import("src/architecture/network/network.types").PathSearchContext) => boolean`
|
|
287
287
|
|
|
288
288
|
Traverse DFS search stack and test reachability.
|
|
289
289
|
|
|
@@ -296,7 +296,7 @@ Returns: True when target node is reachable.
|
|
|
296
296
|
|
|
297
297
|
### applyIncomingEdgeCounts
|
|
298
298
|
|
|
299
|
-
`(buildContext: import("
|
|
299
|
+
`(buildContext: import("src/architecture/network/network.types").TopologyBuildContext) => void`
|
|
300
300
|
|
|
301
301
|
Apply in-degree increments from non-self connections.
|
|
302
302
|
|
|
@@ -307,7 +307,7 @@ Returns: Void.
|
|
|
307
307
|
|
|
308
308
|
### asTopologyProps
|
|
309
309
|
|
|
310
|
-
`(network: import("
|
|
310
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").TopologyNetworkProps`
|
|
311
311
|
|
|
312
312
|
Cast network to internal topology props view.
|
|
313
313
|
|
|
@@ -318,7 +318,7 @@ Returns: Internal topology props view.
|
|
|
318
318
|
|
|
319
319
|
### clearCachedTopoOrder
|
|
320
320
|
|
|
321
|
-
`(internalTopologyProps: import("
|
|
321
|
+
`(internalTopologyProps: import("src/architecture/network/network.types").TopologyNetworkProps) => void`
|
|
322
322
|
|
|
323
323
|
Clear cached topological order state.
|
|
324
324
|
|
|
@@ -329,7 +329,7 @@ Returns: Void.
|
|
|
329
329
|
|
|
330
330
|
### createTopologyBuildContext
|
|
331
331
|
|
|
332
|
-
`(network: import("
|
|
332
|
+
`(network: import("src/architecture/network").default, internalTopologyProps: import("src/architecture/network/network.types").TopologyNetworkProps) => import("src/architecture/network/network.types").TopologyBuildContext`
|
|
333
333
|
|
|
334
334
|
Create mutable build context for Kahn traversal.
|
|
335
335
|
|
|
@@ -341,7 +341,7 @@ Returns: Initialized build context.
|
|
|
341
341
|
|
|
342
342
|
### finalizeTopoOrder
|
|
343
343
|
|
|
344
|
-
`(buildContext: import("
|
|
344
|
+
`(buildContext: import("src/architecture/network/network.types").TopologyBuildContext) => void`
|
|
345
345
|
|
|
346
346
|
Finalize cached order, falling back to raw node order on cycle detection.
|
|
347
347
|
|
|
@@ -352,7 +352,7 @@ Returns: Void.
|
|
|
352
352
|
|
|
353
353
|
### incrementNodeInDegree
|
|
354
354
|
|
|
355
|
-
`(buildContext: import("
|
|
355
|
+
`(buildContext: import("src/architecture/network/network.types").TopologyBuildContext, node: import("src/architecture/node").default) => void`
|
|
356
356
|
|
|
357
357
|
Increment in-degree for a node in the tally map.
|
|
358
358
|
|
|
@@ -364,7 +364,7 @@ Returns: Void.
|
|
|
364
364
|
|
|
365
365
|
### initializeAllNodeInDegreeCounts
|
|
366
366
|
|
|
367
|
-
`(buildContext: import("
|
|
367
|
+
`(buildContext: import("src/architecture/network/network.types").TopologyBuildContext) => void`
|
|
368
368
|
|
|
369
369
|
Initialize all nodes with zero in-degree.
|
|
370
370
|
|
|
@@ -375,7 +375,7 @@ Returns: Void.
|
|
|
375
375
|
|
|
376
376
|
### isSelfConnection
|
|
377
377
|
|
|
378
|
-
`(from: import("
|
|
378
|
+
`(from: import("src/architecture/node").default, to: import("src/architecture/node").default) => boolean`
|
|
379
379
|
|
|
380
380
|
Test whether a connection is a self-loop.
|
|
381
381
|
|
|
@@ -387,7 +387,7 @@ Returns: True when source and target are the same node.
|
|
|
387
387
|
|
|
388
388
|
### resolveFinalOrder
|
|
389
389
|
|
|
390
|
-
`(buildContext: import("
|
|
390
|
+
`(buildContext: import("src/architecture/network/network.types").TopologyBuildContext) => import("src/architecture/node").default[]`
|
|
391
391
|
|
|
392
392
|
Resolve final topological order with cycle fallback.
|
|
393
393
|
|
|
@@ -398,7 +398,7 @@ Returns: Fully valid topological order or raw node order fallback.
|
|
|
398
398
|
|
|
399
399
|
### shouldUseRawNodeOrder
|
|
400
400
|
|
|
401
|
-
`(internalTopologyProps: import("
|
|
401
|
+
`(internalTopologyProps: import("src/architecture/network/network.types").TopologyNetworkProps) => boolean`
|
|
402
402
|
|
|
403
403
|
Determine whether topological order should be bypassed.
|
|
404
404
|
|
|
@@ -411,7 +411,7 @@ Returns: True when acyclic mode is disabled.
|
|
|
411
411
|
|
|
412
412
|
### addOutgoingConnectionsToSet
|
|
413
413
|
|
|
414
|
-
`(outgoingConnections: import("
|
|
414
|
+
`(outgoingConnections: import("src/architecture/connection").default[], allConnections: Set<import("src/architecture/connection").default>) => void`
|
|
415
415
|
|
|
416
416
|
Add all outgoing connections to a deduplication set.
|
|
417
417
|
|
|
@@ -421,7 +421,7 @@ Parameters:
|
|
|
421
421
|
|
|
422
422
|
### assignNetworkNodes
|
|
423
423
|
|
|
424
|
-
`(networkInstance: import("
|
|
424
|
+
`(networkInstance: import("src/architecture/network").default, mlpNodeLayers: MlpNodeLayers) => void`
|
|
425
425
|
|
|
426
426
|
Assign ordered nodes to the network instance.
|
|
427
427
|
|
|
@@ -431,7 +431,7 @@ Parameters:
|
|
|
431
431
|
|
|
432
432
|
### collectUniqueOutgoingConnections
|
|
433
433
|
|
|
434
|
-
`(networkInstance: import("
|
|
434
|
+
`(networkInstance: import("src/architecture/network").default) => Set<import("src/architecture/connection").default>`
|
|
435
435
|
|
|
436
436
|
Collect unique outgoing connections across all network nodes.
|
|
437
437
|
|
|
@@ -442,7 +442,7 @@ Returns: Set of unique outgoing connections.
|
|
|
442
442
|
|
|
443
443
|
### connectLayerPair
|
|
444
444
|
|
|
445
|
-
`(sourceLayer: import("
|
|
445
|
+
`(sourceLayer: import("src/architecture/node").default[], targetLayer: import("src/architecture/node").default[]) => void`
|
|
446
446
|
|
|
447
447
|
Fully connect every source node to every target node.
|
|
448
448
|
|
|
@@ -461,7 +461,7 @@ Parameters:
|
|
|
461
461
|
|
|
462
462
|
### convertConnectionSetToArray
|
|
463
463
|
|
|
464
|
-
`(uniqueConnections: Set<import("
|
|
464
|
+
`(uniqueConnections: Set<import("src/architecture/connection").default>) => import("src/architecture/connection").default[]`
|
|
465
465
|
|
|
466
466
|
Convert a connection set into the canonical array format.
|
|
467
467
|
|
|
@@ -472,7 +472,7 @@ Returns: Array of network connections.
|
|
|
472
472
|
|
|
473
473
|
### createHiddenLayers
|
|
474
474
|
|
|
475
|
-
`(hiddenCounts: number[]) => import("
|
|
475
|
+
`(hiddenCounts: number[]) => import("src/architecture/node").default[][]`
|
|
476
476
|
|
|
477
477
|
Create all hidden layers for an MLP topology.
|
|
478
478
|
|
|
@@ -483,7 +483,7 @@ Returns: Hidden layers in forward order.
|
|
|
483
483
|
|
|
484
484
|
### createMLP
|
|
485
485
|
|
|
486
|
-
`(inputCount: number, hiddenCounts: number[], outputCount: number) => import("
|
|
486
|
+
`(inputCount: number, hiddenCounts: number[], outputCount: number) => import("src/architecture/network").default`
|
|
487
487
|
|
|
488
488
|
Build a strictly layered and fully connected MLP network.
|
|
489
489
|
|
|
@@ -510,7 +510,7 @@ Returns: Grouped node layers for MLP assembly.
|
|
|
510
510
|
|
|
511
511
|
### createNodesOfType
|
|
512
512
|
|
|
513
|
-
`(nodeCount: number, nodeType: "input" | "output" | "hidden") => import("
|
|
513
|
+
`(nodeCount: number, nodeType: "input" | "output" | "hidden") => import("src/architecture/node").default[]`
|
|
514
514
|
|
|
515
515
|
Create all nodes for a single fixed node type.
|
|
516
516
|
|
|
@@ -522,7 +522,7 @@ Returns: Node list of the requested type.
|
|
|
522
522
|
|
|
523
523
|
### createOrderedNodeList
|
|
524
524
|
|
|
525
|
-
`(mlpNodeLayers: MlpNodeLayers) => import("
|
|
525
|
+
`(mlpNodeLayers: MlpNodeLayers) => import("src/architecture/node").default[]`
|
|
526
526
|
|
|
527
527
|
Build the canonical ordered node list used by the network.
|
|
528
528
|
|
|
@@ -533,7 +533,7 @@ Returns: Ordered node list: input, hidden, then output.
|
|
|
533
533
|
|
|
534
534
|
### flattenNodeLayers
|
|
535
535
|
|
|
536
|
-
`(nodeLayers: import("
|
|
536
|
+
`(nodeLayers: import("src/architecture/node").default[][]) => import("src/architecture/node").default[]`
|
|
537
537
|
|
|
538
538
|
Flatten layered node collections into a single ordered list.
|
|
539
539
|
|
|
@@ -544,7 +544,7 @@ Returns: Flattened node list.
|
|
|
544
544
|
|
|
545
545
|
### instantiateNetwork
|
|
546
546
|
|
|
547
|
-
`(networkFactory: NetworkConstructor, inputCount: number, outputCount: number) => import("
|
|
547
|
+
`(networkFactory: NetworkConstructor, inputCount: number, outputCount: number) => import("src/architecture/network").default`
|
|
548
548
|
|
|
549
549
|
Instantiate a new network using the runtime constructor.
|
|
550
550
|
|
|
@@ -557,7 +557,7 @@ Returns: Newly instantiated network.
|
|
|
557
557
|
|
|
558
558
|
### markTopologyDirty
|
|
559
559
|
|
|
560
|
-
`(networkInstance: import("
|
|
560
|
+
`(networkInstance: import("src/architecture/network").default) => void`
|
|
561
561
|
|
|
562
562
|
Mark a network topology as dirty after structural edits.
|
|
563
563
|
|
|
@@ -566,7 +566,7 @@ Parameters:
|
|
|
566
566
|
|
|
567
567
|
### rebuildConnections
|
|
568
568
|
|
|
569
|
-
`(networkInstance: import("
|
|
569
|
+
`(networkInstance: import("src/architecture/network").default) => void`
|
|
570
570
|
|
|
571
571
|
Rebuild the canonical connection array from per-node outgoing lists.
|
|
572
572
|
|
|
@@ -577,7 +577,7 @@ Parameters:
|
|
|
577
577
|
|
|
578
578
|
### createArchitectureDescriptor
|
|
579
579
|
|
|
580
|
-
`(hiddenLayerSizes: number[], hasCycles: boolean, source: import("
|
|
580
|
+
`(hiddenLayerSizes: number[], hasCycles: boolean, source: import("src/architecture/network/network.types").NetworkArchitectureSource, totalNodes: number, totalConnections: number) => import("src/architecture/network/network.types").NetworkArchitectureDescriptor`
|
|
581
581
|
|
|
582
582
|
Creates the final immutable descriptor shape used by telemetry and UI code.
|
|
583
583
|
|
|
@@ -624,7 +624,7 @@ Returns: Node map keyed by stable node index.
|
|
|
624
624
|
|
|
625
625
|
### describeArchitecture
|
|
626
626
|
|
|
627
|
-
`(network: import("
|
|
627
|
+
`(network: import("src/architecture/network").default) => import("src/architecture/network/network.types").NetworkArchitectureDescriptor`
|
|
628
628
|
|
|
629
629
|
Describes network architecture for diagnostics, telemetry, and UI rendering.
|
|
630
630
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
### buildMonitoredSmoothingConfig
|
|
8
8
|
|
|
9
|
-
`(type: import("
|
|
9
|
+
`(type: import("src/architecture/network/network.types").MovingAverageType, window: number, emaAlpha: number | undefined, trimmedRatio: number | undefined) => import("src/architecture/network/network.types").MonitoredSmoothingConfig`
|
|
10
10
|
|
|
11
11
|
Build monitored smoothing configuration from options and defaults.
|
|
12
12
|
|
|
@@ -83,7 +83,7 @@ Notes:
|
|
|
83
83
|
|
|
84
84
|
### applyGradientClippingImpl
|
|
85
85
|
|
|
86
|
-
`(net: import("
|
|
86
|
+
`(net: import("src/architecture/network").default, cfg: import("src/architecture/network/training/network.training.utils.types").GradientClipRuntimeConfig) => void`
|
|
87
87
|
|
|
88
88
|
Apply gradient clipping to a network using a normalized runtime configuration.
|
|
89
89
|
|
|
@@ -201,7 +201,7 @@ Notes:
|
|
|
201
201
|
|
|
202
202
|
### propagate
|
|
203
203
|
|
|
204
|
-
`(rate: number, momentum: number, update: boolean, target: number[], regularization: number, costDerivative: import("
|
|
204
|
+
`(rate: number, momentum: number, update: boolean, target: number[], regularization: number, costDerivative: import("src/architecture/network/training/network.training.utils.types").CostDerivative | undefined) => void`
|
|
205
205
|
|
|
206
206
|
Propagate output and hidden errors backward through the network.
|
|
207
207
|
|
|
@@ -230,7 +230,7 @@ structures. Treat this as an opaque snapshot blob.
|
|
|
230
230
|
|
|
231
231
|
### trainImpl
|
|
232
232
|
|
|
233
|
-
`(net: import("
|
|
233
|
+
`(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; }`
|
|
234
234
|
|
|
235
235
|
High-level training orchestration with early stopping, smoothing & callbacks.
|
|
236
236
|
|
|
@@ -270,7 +270,7 @@ Stopping conditions:
|
|
|
270
270
|
|
|
271
271
|
### trainSetImpl
|
|
272
272
|
|
|
273
|
-
`(net: import("
|
|
273
|
+
`(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`
|
|
274
274
|
|
|
275
275
|
Execute one full pass over dataset (epoch) with optional accumulation & adaptive optimizer.
|
|
276
276
|
Returns mean cost across processed samples.
|
|
@@ -294,13 +294,13 @@ Returns: Mean cost across the processed samples.
|
|
|
294
294
|
|
|
295
295
|
### trainSetCore
|
|
296
296
|
|
|
297
|
-
`(net: import("
|
|
297
|
+
`(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`
|
|
298
298
|
|
|
299
299
|
## architecture/network/training/network.training.backprop.utils.ts
|
|
300
300
|
|
|
301
301
|
### clearNodeState
|
|
302
302
|
|
|
303
|
-
`(node: import("
|
|
303
|
+
`(node: import("src/architecture/node").default) => void`
|
|
304
304
|
|
|
305
305
|
Clear runtime state for a single node.
|
|
306
306
|
|
|
@@ -318,7 +318,7 @@ Parameters:
|
|
|
318
318
|
|
|
319
319
|
### createPropagationContext
|
|
320
320
|
|
|
321
|
-
`(network: import("
|
|
321
|
+
`(network: import("src/architecture/network").default, rate: number, momentum: number, update: boolean, regularization: number | { type: "L1" | "L2"; lambda: number; } | ((weight: number) => number) | undefined, costDerivative: import("src/architecture/network/training/network.training.utils.types").CostDerivative | undefined) => import("src/architecture/network/training/network.training.utils.types").PropagationContext`
|
|
322
322
|
|
|
323
323
|
Build the shared propagation context consumed by layer helpers.
|
|
324
324
|
|
|
@@ -334,7 +334,7 @@ Returns: Immutable context consumed by propagation helpers.
|
|
|
334
334
|
|
|
335
335
|
### getLastNodeIndex
|
|
336
336
|
|
|
337
|
-
`(network: import("
|
|
337
|
+
`(network: import("src/architecture/network").default) => number`
|
|
338
338
|
|
|
339
339
|
Resolve the last node index in the network.
|
|
340
340
|
|
|
@@ -345,7 +345,7 @@ Returns: Last valid node index.
|
|
|
345
345
|
|
|
346
346
|
### getOutputLayerStartIndex
|
|
347
347
|
|
|
348
|
-
`(network: import("
|
|
348
|
+
`(network: import("src/architecture/network").default) => number`
|
|
349
349
|
|
|
350
350
|
Resolve the first index of the output layer.
|
|
351
351
|
|
|
@@ -356,7 +356,7 @@ Returns: Index at which output nodes begin.
|
|
|
356
356
|
|
|
357
357
|
### propagate
|
|
358
358
|
|
|
359
|
-
`(rate: number, momentum: number, update: boolean, target: number[], regularization: number, costDerivative: import("
|
|
359
|
+
`(rate: number, momentum: number, update: boolean, target: number[], regularization: number, costDerivative: import("src/architecture/network/training/network.training.utils.types").CostDerivative | undefined) => void`
|
|
360
360
|
|
|
361
361
|
Propagate output and hidden errors backward through the network.
|
|
362
362
|
|
|
@@ -371,7 +371,7 @@ Parameters:
|
|
|
371
371
|
|
|
372
372
|
### propagateHiddenLayer
|
|
373
373
|
|
|
374
|
-
`(context: import("
|
|
374
|
+
`(context: import("src/architecture/network/training/network.training.utils.types").PropagationContext) => void`
|
|
375
375
|
|
|
376
376
|
Propagate all hidden nodes in reverse topological order.
|
|
377
377
|
|
|
@@ -380,7 +380,7 @@ Parameters:
|
|
|
380
380
|
|
|
381
381
|
### propagateOutputLayer
|
|
382
382
|
|
|
383
|
-
`(context: import("
|
|
383
|
+
`(context: import("src/architecture/network/training/network.training.utils.types").PropagationContext, target: number[]) => void`
|
|
384
384
|
|
|
385
385
|
Propagate all output nodes with explicit targets.
|
|
386
386
|
|
|
@@ -390,7 +390,7 @@ Parameters:
|
|
|
390
390
|
|
|
391
391
|
### propagateOutputNodeWithCostDerivative
|
|
392
392
|
|
|
393
|
-
`(node: import("
|
|
393
|
+
`(node: import("src/architecture/node").default, context: import("src/architecture/network/training/network.training.utils.types").PropagationContext, targetValue: number, costDerivative: import("src/architecture/network/training/network.training.utils.types").CostDerivative) => void`
|
|
394
394
|
|
|
395
395
|
Propagate one output node using a custom cost derivative override.
|
|
396
396
|
|
|
@@ -402,7 +402,7 @@ Parameters:
|
|
|
402
402
|
|
|
403
403
|
### propagateSingleHiddenNode
|
|
404
404
|
|
|
405
|
-
`(context: import("
|
|
405
|
+
`(context: import("src/architecture/network/training/network.training.utils.types").PropagationContext, node: import("src/architecture/node").default) => void`
|
|
406
406
|
|
|
407
407
|
Propagate a single hidden node without a target value.
|
|
408
408
|
|
|
@@ -412,7 +412,7 @@ Parameters:
|
|
|
412
412
|
|
|
413
413
|
### propagateSingleOutputNode
|
|
414
414
|
|
|
415
|
-
`(context: import("
|
|
415
|
+
`(context: import("src/architecture/network/training/network.training.utils.types").PropagationContext, node: import("src/architecture/node").default, targetValue: number) => void`
|
|
416
416
|
|
|
417
417
|
Propagate a single output node with a target value.
|
|
418
418
|
|
|
@@ -423,7 +423,7 @@ Parameters:
|
|
|
423
423
|
|
|
424
424
|
### validateTargetLength
|
|
425
425
|
|
|
426
|
-
`(network: import("
|
|
426
|
+
`(network: import("src/architecture/network").default, target: number[]) => void`
|
|
427
427
|
|
|
428
428
|
Validate that target output count matches the network output width.
|
|
429
429
|
|
|
@@ -435,20 +435,20 @@ Parameters:
|
|
|
435
435
|
|
|
436
436
|
### trainFinalizeCore
|
|
437
437
|
|
|
438
|
-
`(net: import("
|
|
438
|
+
`(net: import("src/architecture/network").default, set: { input: number[]; output: number[]; }[], options: import("src/architecture/network/network.types").TrainingOptions) => { error: number; iterations: number; time: number; }`
|
|
439
439
|
|
|
440
440
|
## architecture/network/training/network.training.smoothing.utils.ts
|
|
441
441
|
|
|
442
442
|
### computeMonitoredError
|
|
443
443
|
|
|
444
|
-
`(trainError: number, recentErrors: number[], cfg: import("
|
|
444
|
+
`(trainError: number, recentErrors: number[], cfg: import("src/architecture/network/network.types").MonitoredSmoothingConfig, state: import("src/architecture/network/network.types").PrimarySmoothingState) => number`
|
|
445
445
|
|
|
446
446
|
### computePlateauMetric
|
|
447
447
|
|
|
448
|
-
`(trainError: number, plateauErrors: number[], cfg: import("
|
|
448
|
+
`(trainError: number, plateauErrors: number[], cfg: import("src/architecture/network/network.types").PlateauSmoothingConfig, state: import("src/architecture/network/network.types").PlateauSmoothingState) => number`
|
|
449
449
|
|
|
450
450
|
## architecture/network/training/network.training.gradient-clip.utils.ts
|
|
451
451
|
|
|
452
452
|
### applyGradientClippingCore
|
|
453
453
|
|
|
454
|
-
`(net: import("
|
|
454
|
+
`(net: import("src/architecture/network").default, cfg: import("src/architecture/network/training/network.training.utils.types").GradientClipRuntimeConfig) => void`
|