@reicek/neataptic-ts 0.1.16 → 0.1.18

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.
Files changed (311) hide show
  1. package/.github/copilot-instructions.md +52 -0
  2. package/docs/architecture/README.md +53 -53
  3. package/docs/architecture/index.html +53 -53
  4. package/docs/architecture/network/README.md +27 -27
  5. package/docs/architecture/network/index.html +27 -27
  6. package/docs/assets/ascii-maze.bundle.js +38 -38
  7. package/docs/assets/ascii-maze.bundle.js.map +4 -4
  8. package/docs/multithreading/README.md +5 -5
  9. package/docs/multithreading/index.html +5 -5
  10. package/docs/multithreading/workers/README.md +2 -2
  11. package/docs/multithreading/workers/index.html +2 -2
  12. package/docs/neat/README.md +8492 -713
  13. package/docs/neat/index.html +5512 -530
  14. package/docs/src/README.md +84 -273
  15. package/docs/src/index.html +86 -134
  16. package/docs/utils/README.md +3 -3
  17. package/docs/utils/index.html +3 -3
  18. package/package.json +1 -1
  19. package/plans/HyperMorphoNEAT.md +360 -578
  20. package/plans/Memory_Optimization.md +2 -2
  21. package/src/README.md +84 -273
  22. package/src/architecture/README.md +53 -53
  23. package/src/architecture/architect.ts +15 -15
  24. package/src/architecture/connection.ts +14 -14
  25. package/src/architecture/group.ts +7 -7
  26. package/src/architecture/layer.ts +38 -36
  27. package/src/architecture/network/README.md +27 -27
  28. package/src/architecture/network/network.activate.ts +8 -8
  29. package/src/architecture/network/network.connect.ts +3 -3
  30. package/src/architecture/network/network.deterministic.ts +7 -7
  31. package/src/architecture/network/network.evolve.ts +15 -15
  32. package/src/architecture/network/network.gating.ts +2 -2
  33. package/src/architecture/network/network.genetic.ts +14 -19
  34. package/src/architecture/network/network.mutate.ts +54 -56
  35. package/src/architecture/network/network.onnx.ts +123 -127
  36. package/src/architecture/network/network.prune.ts +14 -14
  37. package/src/architecture/network/network.remove.ts +4 -4
  38. package/src/architecture/network/network.serialize.ts +30 -30
  39. package/src/architecture/network/network.slab.ts +69 -61
  40. package/src/architecture/network/network.standalone.ts +25 -28
  41. package/src/architecture/network/network.stats.ts +1 -1
  42. package/src/architecture/network/network.topology.ts +1 -1
  43. package/src/architecture/network/network.training.ts +57 -57
  44. package/src/architecture/network.ts +71 -69
  45. package/src/architecture/node.ts +28 -28
  46. package/src/architecture/nodePool.ts +1 -1
  47. package/src/methods/activation.ts +1 -1
  48. package/src/methods/cost.ts +3 -3
  49. package/src/methods/rate.ts +9 -9
  50. package/src/multithreading/README.md +5 -5
  51. package/src/multithreading/multi.ts +4 -4
  52. package/src/multithreading/workers/README.md +2 -2
  53. package/src/multithreading/workers/node/testworker.ts +9 -6
  54. package/src/multithreading/workers/node/worker.ts +1 -1
  55. package/src/neat/README.md +8492 -713
  56. package/src/neat/neat.adaptive.ts +154 -490
  57. package/src/neat/neat.adaptive.utils.ts +1553 -0
  58. package/src/neat/neat.compat.ts +36 -135
  59. package/src/neat/neat.compat.utils.ts +278 -0
  60. package/src/neat/neat.diversity.ts +19 -197
  61. package/src/neat/neat.diversity.utils.ts +359 -0
  62. package/src/neat/neat.evaluate.auto-distance.utils.ts +210 -0
  63. package/src/neat/neat.evaluate.constants.utils.ts +42 -0
  64. package/src/neat/neat.evaluate.entropy-compat.utils.ts +67 -0
  65. package/src/neat/neat.evaluate.entropy-sharing.utils.ts +78 -0
  66. package/src/neat/neat.evaluate.fitness.utils.ts +48 -0
  67. package/src/neat/neat.evaluate.novelty.utils.ts +225 -0
  68. package/src/neat/neat.evaluate.objectives.utils.ts +50 -0
  69. package/src/neat/neat.evaluate.speciation.utils.ts +35 -0
  70. package/src/neat/neat.evaluate.ts +44 -422
  71. package/src/neat/neat.evaluate.types.utils.ts +198 -0
  72. package/src/neat/neat.evaluate.utils.ts +9 -0
  73. package/src/neat/neat.evolve.adaptive.utils.ts +224 -0
  74. package/src/neat/neat.evolve.objectives.utils.ts +241 -0
  75. package/src/neat/neat.evolve.population.utils.ts +513 -0
  76. package/src/neat/neat.evolve.runtime.utils.ts +128 -0
  77. package/src/neat/neat.evolve.speciation.utils.ts +251 -0
  78. package/src/neat/neat.evolve.telemetry.utils.ts +39 -0
  79. package/src/neat/neat.evolve.ts +219 -1328
  80. package/src/neat/neat.evolve.types.ts +320 -0
  81. package/src/neat/neat.evolve.utils.ts +7 -0
  82. package/src/neat/neat.export.ts +19 -17
  83. package/src/neat/neat.helpers.ts +17 -17
  84. package/src/neat/neat.lineage.ts +46 -131
  85. package/src/neat/neat.lineage.utils.ts +387 -0
  86. package/src/neat/neat.multiobjective.archive.utils.ts +59 -0
  87. package/src/neat/neat.multiobjective.category.utils.ts +335 -0
  88. package/src/neat/neat.multiobjective.crowding.utils.ts +512 -0
  89. package/src/neat/neat.multiobjective.dominance.utils.ts +403 -0
  90. package/src/neat/neat.multiobjective.fronts.utils.ts +177 -0
  91. package/src/neat/neat.multiobjective.objectives.utils.ts +75 -0
  92. package/src/neat/neat.multiobjective.ts +30 -229
  93. package/src/neat/neat.multiobjective.types.utils.ts +112 -0
  94. package/src/neat/neat.multiobjective.utils.ts +9 -0
  95. package/src/neat/neat.mutation.add-conn.utils.ts +278 -0
  96. package/src/neat/neat.mutation.add-node.utils.ts +309 -0
  97. package/src/neat/neat.mutation.dead-ends.utils.ts +229 -0
  98. package/src/neat/neat.mutation.flow.utils.ts +355 -0
  99. package/src/neat/neat.mutation.min-hidden.utils.ts +281 -0
  100. package/src/neat/neat.mutation.select.utils.ts +347 -0
  101. package/src/neat/neat.mutation.ts +184 -788
  102. package/src/neat/neat.mutation.types.ts +193 -0
  103. package/src/neat/neat.mutation.utils.ts +6 -0
  104. package/src/neat/neat.objectives.ts +30 -72
  105. package/src/neat/neat.objectives.utils.ts +195 -0
  106. package/src/neat/neat.pruning.ts +74 -165
  107. package/src/neat/neat.pruning.utils.ts +375 -0
  108. package/src/neat/neat.selection.ts +49 -197
  109. package/src/neat/neat.selection.utils.ts +470 -0
  110. package/src/neat/neat.speciation.ts +82 -221
  111. package/src/neat/neat.speciation.utils.ts +926 -0
  112. package/src/neat/neat.species.ts +15 -69
  113. package/src/neat/neat.species.utils.ts +156 -0
  114. package/src/neat/neat.telemetry.buffer.utils.ts +58 -0
  115. package/src/neat/neat.telemetry.complexity.utils.ts +250 -0
  116. package/src/neat/neat.telemetry.diversity.utils.ts +214 -0
  117. package/src/neat/neat.telemetry.entropy.utils.ts +111 -0
  118. package/src/neat/neat.telemetry.exports.ts +181 -231
  119. package/src/neat/neat.telemetry.exports.utils.ts +428 -0
  120. package/src/neat/neat.telemetry.lineage.utils.ts +359 -0
  121. package/src/neat/neat.telemetry.objectives.utils.ts +216 -0
  122. package/src/neat/neat.telemetry.operator.utils.ts +20 -0
  123. package/src/neat/neat.telemetry.performance.utils.ts +30 -0
  124. package/src/neat/neat.telemetry.rng.utils.ts +22 -0
  125. package/src/neat/neat.telemetry.selection.utils.ts +108 -0
  126. package/src/neat/neat.telemetry.ts +270 -675
  127. package/src/neat/neat.telemetry.types.ts +51 -0
  128. package/src/neat/neat.telemetry.utils.ts +11 -0
  129. package/src/neat/neat.types.ts +418 -36
  130. package/src/neat.ts +54 -113
  131. package/src/utils/README.md +3 -3
  132. package/src/utils/memory.ts +21 -16
  133. package/test/architecture/activationArrayPool.capacity.test.ts +1 -1
  134. package/test/architecture/group.test.ts +17 -17
  135. package/test/architecture/layer.test.ts +103 -99
  136. package/test/architecture/node.test.ts +24 -26
  137. package/test/benchmarks/benchmark.buildVariants.test.ts +1 -1
  138. package/test/benchmarks/benchmark.fieldAudit.test.ts +1 -1
  139. package/test/benchmarks/benchmark.memory.test.ts +36 -43
  140. package/test/benchmarks/benchmark.nodePool.determinism.test.ts +2 -2
  141. package/test/benchmarks/benchmark.nodePool.memory.test.ts +2 -2
  142. package/test/benchmarks/benchmark.nodePool.removeRelease.test.ts +1 -1
  143. package/test/benchmarks/benchmark.nodePool.stress.test.ts +1 -1
  144. package/test/benchmarks/benchmark.report.test.ts +3 -3
  145. package/test/benchmarks/benchmark.serialization.gater.test.ts +10 -10
  146. package/test/benchmarks/benchmark.slab.fragmentation.bounds.test.ts +2 -2
  147. package/test/benchmarks/benchmark.slab.fragmentation.trend.test.ts +1 -1
  148. package/test/benchmarks/benchmark.variance.test.ts +2 -2
  149. package/test/examples/asciiMaze/asciiMaze.e2e.test.ts +2 -2
  150. package/test/examples/asciiMaze/browser-entry.ts +26 -25
  151. package/test/examples/asciiMaze/browserLogger.ts +10 -7
  152. package/test/examples/asciiMaze/browserTerminalUtility.ts +1 -1
  153. package/test/examples/asciiMaze/dashboardManager.ts +107 -110
  154. package/test/examples/asciiMaze/evolutionEngine/engineState.ts +20 -20
  155. package/test/examples/asciiMaze/evolutionEngine/evolutionLoop.ts +44 -44
  156. package/test/examples/asciiMaze/evolutionEngine/neatConfiguration.ts +3 -3
  157. package/test/examples/asciiMaze/evolutionEngine/networkInspection.ts +8 -8
  158. package/test/examples/asciiMaze/evolutionEngine/optionsAndSetup.ts +6 -6
  159. package/test/examples/asciiMaze/evolutionEngine/populationDynamics.ts +44 -44
  160. package/test/examples/asciiMaze/evolutionEngine/populationPruning.ts +15 -15
  161. package/test/examples/asciiMaze/evolutionEngine/rngAndTiming.ts +4 -4
  162. package/test/examples/asciiMaze/evolutionEngine/sampling.ts +8 -8
  163. package/test/examples/asciiMaze/evolutionEngine/scratchPools.ts +18 -18
  164. package/test/examples/asciiMaze/evolutionEngine/setupHelpers.ts +18 -14
  165. package/test/examples/asciiMaze/evolutionEngine/telemetryMetrics.ts +60 -54
  166. package/test/examples/asciiMaze/evolutionEngine/trainingWarmStart.ts +16 -16
  167. package/test/examples/asciiMaze/evolutionEngine.ts +17 -17
  168. package/test/examples/asciiMaze/fitness.ts +7 -7
  169. package/test/examples/asciiMaze/interfaces.ts +7 -6
  170. package/test/examples/asciiMaze/mazeMovement.ts +72 -72
  171. package/test/examples/asciiMaze/mazeUtils.ts +13 -18
  172. package/test/examples/asciiMaze/mazeVision.ts +7 -7
  173. package/test/examples/asciiMaze/mazeVisualization.ts +48 -48
  174. package/test/examples/asciiMaze/mazes.ts +4 -4
  175. package/test/examples/asciiMaze/networkRefinement.ts +15 -13
  176. package/test/examples/asciiMaze/networkVisualization.ts +102 -109
  177. package/test/examples/asciiMaze/refineWinner.ts +1 -1
  178. package/test/examples/asciiMaze/terminalUtility.ts +1 -1
  179. package/test/methods/activation.test.ts +5 -5
  180. package/test/methods/connection.test.ts +1 -1
  181. package/test/methods/cost.test.ts +3 -3
  182. package/test/methods/crossover.test.ts +2 -2
  183. package/test/methods/gating.test.ts +3 -3
  184. package/test/methods/mutation.test.ts +5 -6
  185. package/test/methods/optimizers.behavior.test.ts +3 -3
  186. package/test/methods/optimizers.formula.test.ts +4 -4
  187. package/test/methods/selection.test.ts +1 -1
  188. package/test/multithreading/multi.test.ts +1 -1
  189. package/test/multithreading/workers.coverage.test.ts +3 -4
  190. package/test/neat/neat.adaptive.ancestorUniq.cooldown.test.ts +14 -11
  191. package/test/neat/neat.adaptive.ancestorUniq.epsilon.test.ts +36 -14
  192. package/test/neat/neat.adaptive.ancestorUniq.lineagePressure.test.ts +36 -14
  193. package/test/neat/neat.adaptive.complexityBudget.connShrink.test.ts +3 -4
  194. package/test/neat/neat.adaptive.complexityBudget.growth.novelty.test.ts +1 -1
  195. package/test/neat/neat.adaptive.complexityBudget.minClamp.test.ts +1 -1
  196. package/test/neat/neat.adaptive.complexityBudget.trend.test.ts +2 -2
  197. package/test/neat/neat.adaptive.criterion.complexity.test.ts +3 -2
  198. package/test/neat/neat.adaptive.minimalCriterion.rejection.test.ts +1 -1
  199. package/test/neat/neat.adaptive.mutation.amount.adapt.test.ts +6 -6
  200. package/test/neat/neat.adaptive.mutation.anneal.strategy.test.ts +6 -7
  201. package/test/neat/neat.adaptive.mutation.exploreLow.strategy.test.ts +4 -5
  202. package/test/neat/neat.adaptive.mutation.strategy.test.ts +8 -6
  203. package/test/neat/neat.adaptive.mutation.twotier.balance.test.ts +4 -5
  204. package/test/neat/neat.adaptive.mutation.twotier.fallback.single.test.ts +4 -5
  205. package/test/neat/neat.adaptive.operator.adaptation.decay.balance.test.ts +4 -5
  206. package/test/neat/neat.adaptive.operator.bandit.decay.test.ts +1 -1
  207. package/test/neat/neat.adaptive.phasedComplexity.toggle.test.ts +1 -1
  208. package/test/neat/neat.adaptive.pruning.test.ts +1 -1
  209. package/test/neat/neat.additional.coverage.test.ts +2 -2
  210. package/test/neat/neat.advanced.enhancements.test.ts +2 -2
  211. package/test/neat/neat.advanced.test.ts +11 -4
  212. package/test/neat/neat.compat.distance.cache.test.ts +2 -2
  213. package/test/neat/neat.diversity.autocompat.test.ts +4 -3
  214. package/test/neat/neat.diversity.stats.test.ts +1 -1
  215. package/test/neat/neat.enhancements.test.ts +6 -6
  216. package/test/neat/neat.entropy.ancestorAdaptive.test.ts +1 -1
  217. package/test/neat/neat.helpers.spawn.pool.test.ts +2 -2
  218. package/test/neat/neat.innovation.test.ts +10 -10
  219. package/test/neat/neat.lineage.antibreeding.test.ts +2 -2
  220. package/test/neat/neat.lineage.entropy.test.ts +3 -3
  221. package/test/neat/neat.lineage.inbreeding.test.ts +2 -2
  222. package/test/neat/neat.lineage.pressure.test.ts +1 -1
  223. package/test/neat/neat.multiobjective.adaptive.test.ts +2 -2
  224. package/test/neat/neat.multiobjective.dynamic.test.ts +4 -4
  225. package/test/neat/neat.multiobjective.fastsort.delegation.test.ts +5 -4
  226. package/test/neat/neat.multiobjective.prune.test.ts +1 -1
  227. package/test/neat/neat.mutation.addconn.cycle.guard.test.ts +11 -9
  228. package/test/neat/neat.mutation.undefined.pool.test.ts +2 -2
  229. package/test/neat/neat.objectives.register.clear.test.ts +4 -4
  230. package/test/neat/neat.operator.phases.test.ts +2 -2
  231. package/test/neat/neat.pruneInactive.behavior.test.ts +1 -1
  232. package/test/neat/neat.pruning.adaptive.test.ts +2 -2
  233. package/test/neat/neat.reenable.adaptation.test.ts +1 -1
  234. package/test/neat/neat.rng.state.test.ts +2 -2
  235. package/test/neat/neat.spawn.add.test.ts +7 -7
  236. package/test/neat/neat.speciation.age.penalty.test.ts +1 -1
  237. package/test/neat/neat.speciation.assign.existing.test.ts +1 -1
  238. package/test/neat/neat.speciation.auto.tuning.jitter.test.ts +1 -1
  239. package/test/neat/neat.speciation.create.newSpecies.test.ts +4 -3
  240. package/test/neat/neat.speciation.fitnessSharing.equal.test.ts +2 -2
  241. package/test/neat/neat.speciation.fitnessSharing.kernel.test.ts +2 -2
  242. package/test/neat/neat.speciation.pid.threshold.clip.max.test.ts +2 -2
  243. package/test/neat/neat.speciation.pid.threshold.clip.min.test.ts +2 -2
  244. package/test/neat/neat.telemetry.advanced.test.ts +19 -19
  245. package/test/neat/neat.telemetry.csv.lineage.test.ts +1 -1
  246. package/test/neat/neat.telemetry.fastmode.diversity.test.ts +1 -1
  247. package/test/neat/neat.telemetry.objective.events.test.ts +1 -1
  248. package/test/neat/neat.telemetry.parity.test.ts +2 -2
  249. package/test/neat/neat.test.ts +14 -12
  250. package/test/neat/neat.utilities.test.ts +6 -6
  251. package/test/network/error.handling.test.ts +14 -14
  252. package/test/network/evolution.test.ts +5 -5
  253. package/test/network/genetic.test.ts +2 -2
  254. package/test/network/learning.capability.test.ts +1 -1
  255. package/test/network/mutation.effects.test.ts +8 -8
  256. package/test/network/network.activate.test.ts +4 -4
  257. package/test/network/network.deterministic.test.ts +1 -1
  258. package/test/network/network.evolve.branches.test.ts +3 -3
  259. package/test/network/network.evolve.multithread.branches.test.ts +4 -4
  260. package/test/network/network.evolve.test.ts +2 -2
  261. package/test/network/network.gating.removal.test.ts +1 -1
  262. package/test/network/network.mutate.additional.test.ts +5 -5
  263. package/test/network/network.mutate.edgecases.test.ts +1 -1
  264. package/test/network/network.prune.earlyexit.test.ts +4 -4
  265. package/test/network/network.pruning.test.ts +1 -1
  266. package/test/network/network.remove.errors.test.ts +3 -3
  267. package/test/network/network.slab.async.test.ts +5 -5
  268. package/test/network/network.slab.capacity.test.ts +1 -1
  269. package/test/network/network.slab.fallbacks.test.ts +3 -3
  270. package/test/network/network.slab.fast.gain.parity.test.ts +1 -1
  271. package/test/network/network.slab.fast.gating.guard.test.ts +2 -2
  272. package/test/network/network.slab.fast.parity.test.ts +1 -1
  273. package/test/network/network.slab.flags.test.ts +7 -5
  274. package/test/network/network.slab.gain.omission.test.ts +7 -5
  275. package/test/network/network.slab.gain.release-on-reset.test.ts +6 -4
  276. package/test/network/network.slab.phase3.test.ts +7 -5
  277. package/test/network/network.slab.plasticity.test.ts +7 -5
  278. package/test/network/network.slab.versioning.test.ts +7 -5
  279. package/test/network/network.stats.test.ts +2 -2
  280. package/test/network/network.training.advanced.test.ts +1 -1
  281. package/test/network/network.training.basic.test.ts +10 -10
  282. package/test/network/network.training.helpers.test.ts +10 -10
  283. package/test/network/onnx.export.test.ts +17 -17
  284. package/test/network/onnx.recurrent.fused.test.ts +11 -9
  285. package/test/network/pruning.topology.test.ts +2 -2
  286. package/test/network/regularization.determinism.test.ts +12 -8
  287. package/test/network/regularization.dropconnect.validation.test.ts +2 -2
  288. package/test/network/regularization.stochasticdepth.test.ts +15 -11
  289. package/test/network/regularization.test.ts +18 -18
  290. package/test/network/regularization.weightnoise.test.ts +1 -1
  291. package/test/network/standalone.test.ts +19 -19
  292. package/test/network/structure.serialization.test.ts +54 -50
  293. package/test/onnx/onnx.conv.groundwork.test.ts +1 -1
  294. package/test/onnx/onnx.conv.infer.test.ts +1 -1
  295. package/test/onnx/onnx.conv.pool.flatten.test.ts +1 -1
  296. package/test/onnx/onnx.conv.pool.validation.test.ts +4 -4
  297. package/test/onnx/onnx.export.test.ts +19 -18
  298. package/test/onnx/onnx.import.test.ts +2 -2
  299. package/test/onnx/onnx.roundtrip.test.ts +1 -1
  300. package/test/training/training.earlystopping.test.ts +1 -1
  301. package/test/training/training.edge-cases.test.ts +2 -2
  302. package/test/training/training.extensions.test.ts +1 -1
  303. package/test/training/training.gradient.features.test.ts +5 -3
  304. package/test/training/training.gradient.refinements.test.ts +5 -3
  305. package/test/training/training.optimizer.test.ts +1 -1
  306. package/test/utils/console-helper.ts +6 -4
  307. package/test/utils/jest-setup.ts +8 -6
  308. package/test/utils/pollUntil.test.ts +5 -5
  309. package/test/utils/pollUntil.ts +1 -1
  310. package/test/utils/test-helpers.ts +9 -9
  311. package/plans/ASCII_MAZE_enhancements.md +0 -0
@@ -87,6 +87,58 @@ Strict rules to enforce (apply to any suggestion touching `src/` or `test/`)
87
87
 
88
88
  7. Types: avoid `any` and `unknown` in `src/` and `test/`. Use precise types or `// eslint-disable-next-line @typescript-eslint/no-explicit-any` with a short justification comment.
89
89
 
90
+ 8. Local helper structure preference:
91
+ - For new or refactored functions that introduce internal helpers, order the function as:
92
+ 1) Local variables/constants at top
93
+ 2) Declarative logic (calls to helpers)
94
+ 3) Return (fold)
95
+ 4) Internal helper function declarations at the end of the parent function
96
+ - Helpers should be small and pure where practical, with step-level inline comments and JSDoc.
97
+
98
+ 9. Mandatory implementation pattern (always; keep cognitive complexity low):
99
+ - Applies to all new code and any modified/refactored code in `src/` and `test/`.
100
+ - Prefer a *declarative top-level flow* ("collect → transform → fold/return") over deeply nested control flow.
101
+ - Avoid ternary chains (especially nested) for multi-branch fallback logic; use named resolver helpers with early returns instead.
102
+ - When normalizing legacy/loose data, isolate type assertions/casting into a single helper and keep the rest strongly typed.
103
+ - Keep helpers after the fold, and give each helper a single responsibility (SOLID: SRP). If the logic reads like a decision tree, it likely wants 2–4 small helpers.
104
+
105
+ Example (ideal structure)
106
+ -------------------------
107
+ ```ts
108
+ export function exampleMethod(input: Input) {
109
+ const constants = /* ... */;
110
+ const locals = /* ... */;
111
+
112
+ if (/* guard */) return /* fold */;
113
+
114
+ const stepOne = helperOne(input, locals, constants);
115
+ const stepTwo = helperTwo(stepOne, locals, constants);
116
+ return helperThree(stepTwo, locals, constants);
117
+
118
+ /** @param value - Input. @returns Intermediate. */
119
+ function helperOne(value: Input, _locals: unknown, _constants: unknown): Intermediate {
120
+ // Step 1: ...
121
+ return /* ... */;
122
+ }
123
+
124
+ /** @param value - Intermediate. @returns Intermediate. */
125
+ function helperTwo(value: Intermediate, _locals: unknown, _constants: unknown): Intermediate {
126
+ // Step 1: ...
127
+ return /* ... */;
128
+ }
129
+
130
+ /** @param value - Intermediate. @returns Output. */
131
+ function helperThree(value: Intermediate, _locals: unknown, _constants: unknown): Output {
132
+ // Step 1: Fold/return.
133
+ return /* ... */;
134
+ }
135
+ }
136
+
137
+ type Input = unknown;
138
+ type Intermediate = unknown;
139
+ type Output = unknown;
140
+ ```
141
+
90
142
  Automated validations to run before finalizing a suggestion
91
143
  -------------------------------------------------------
92
144
  When you modify or create files under `src/` or `test/`, run (or advise running) these quick validations. If you cannot run them, still make sure your suggestion would pass them.
@@ -51,7 +51,7 @@ connection strategies from `methods.groupConnection`.
51
51
 
52
52
  #### construct
53
53
 
54
- `(list: (import("D:/code-practice/NeatapticTS/src/architecture/node").default | import("D:/code-practice/NeatapticTS/src/architecture/layer").default | import("D:/code-practice/NeatapticTS/src/architecture/group").default)[]) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
54
+ `(list: (import("C:/NeatapticTS/src/architecture/node").default | import("C:/NeatapticTS/src/architecture/layer").default | import("C:/NeatapticTS/src/architecture/group").default)[]) => import("C:/NeatapticTS/src/architecture/network").default`
55
55
 
56
56
  Constructs a Network instance from an array of interconnected Layers, Groups, or Nodes.
57
57
 
@@ -67,7 +67,7 @@ Returns: A Network object representing the constructed architecture.
67
67
 
68
68
  #### enforceMinimumHiddenLayerSizes
69
69
 
70
- `(network: import("D:/code-practice/NeatapticTS/src/architecture/network").default) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
70
+ `(network: import("C:/NeatapticTS/src/architecture/network").default) => import("C:/NeatapticTS/src/architecture/network").default`
71
71
 
72
72
  Enforces the minimum hidden layer size rule on a network.
73
73
 
@@ -81,7 +81,7 @@ Returns: The same network with properly sized hidden layers
81
81
 
82
82
  #### gru
83
83
 
84
- `(layers: number[]) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
84
+ `(layers: number[]) => import("C:/NeatapticTS/src/architecture/network").default`
85
85
 
86
86
  Creates a Gated Recurrent Unit (GRU) network.
87
87
  GRUs are another type of recurrent neural network, similar to LSTMs but often simpler.
@@ -94,7 +94,7 @@ Returns: The constructed GRU network.
94
94
 
95
95
  #### hopfield
96
96
 
97
- `(size: number) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
97
+ `(size: number) => import("C:/NeatapticTS/src/architecture/network").default`
98
98
 
99
99
  Creates a Hopfield network.
100
100
  Hopfield networks are a form of recurrent neural network often used for associative memory tasks.
@@ -107,7 +107,7 @@ Returns: The constructed Hopfield network.
107
107
 
108
108
  #### lstm
109
109
 
110
- `(layerArgs: (number | { inputToOutput?: boolean | undefined; })[]) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
110
+ `(layerArgs: (number | { inputToOutput?: boolean | undefined; })[]) => import("C:/NeatapticTS/src/architecture/network").default`
111
111
 
112
112
  Creates a Long Short-Term Memory (LSTM) network.
113
113
  LSTMs are a type of recurrent neural network (RNN) capable of learning long-range dependencies.
@@ -123,7 +123,7 @@ Returns: The constructed LSTM network.
123
123
 
124
124
  #### narx
125
125
 
126
- `(inputSize: number, hiddenLayers: number | number[], outputSize: number, previousInput: number, previousOutput: number) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
126
+ `(inputSize: number, hiddenLayers: number | number[], outputSize: number, previousInput: number, previousOutput: number) => import("C:/NeatapticTS/src/architecture/network").default`
127
127
 
128
128
  Creates a Nonlinear AutoRegressive network with eXogenous inputs (NARX).
129
129
  NARX networks are recurrent networks often used for time series prediction.
@@ -141,7 +141,7 @@ Returns: The constructed NARX network.
141
141
 
142
142
  #### perceptron
143
143
 
144
- `(layers: number[]) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
144
+ `(layers: number[]) => import("C:/NeatapticTS/src/architecture/network").default`
145
145
 
146
146
  Creates a standard Multi-Layer Perceptron (MLP) network.
147
147
  An MLP consists of an input layer, one or more hidden layers, and an output layer,
@@ -154,7 +154,7 @@ Returns: The constructed MLP network.
154
154
 
155
155
  #### random
156
156
 
157
- `(input: number, hidden: number, output: number, options: { connections?: number | undefined; backconnections?: number | undefined; selfconnections?: number | undefined; gates?: number | undefined; }) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
157
+ `(input: number, hidden: number, output: number, options: { connections?: number | undefined; backconnections?: number | undefined; selfconnections?: number | undefined; gates?: number | undefined; }) => import("C:/NeatapticTS/src/architecture/network").default`
158
158
 
159
159
  Creates a randomly structured network based on specified node counts and connection options.
160
160
 
@@ -193,7 +193,7 @@ bits4+ reserved.
193
193
 
194
194
  #### acquire
195
195
 
196
- `(from: import("D:/code-practice/NeatapticTS/src/architecture/node").default, to: import("D:/code-practice/NeatapticTS/src/architecture/node").default, weight: number | undefined) => import("D:/code-practice/NeatapticTS/src/architecture/connection").default`
196
+ `(from: import("C:/NeatapticTS/src/architecture/node").default, to: import("C:/NeatapticTS/src/architecture/node").default, weight: number | undefined) => import("C:/NeatapticTS/src/architecture/connection").default`
197
197
 
198
198
  Acquire a `Connection` from the pool (or construct new). Fields are fully reset & given
199
199
  a fresh sequential `innovation` id. Prefer this in evolutionary algorithms that mutate
@@ -294,7 +294,7 @@ Last applied delta weight (used by classic momentum).
294
294
 
295
295
  #### release
296
296
 
297
- `(conn: import("D:/code-practice/NeatapticTS/src/architecture/connection").default) => void`
297
+ `(conn: import("C:/NeatapticTS/src/architecture/connection").default) => void`
298
298
 
299
299
  Return a `Connection` to the internal pool for later reuse. Do NOT use the instance again
300
300
  afterward unless re-acquired (treat as surrendered). Optimizer / trace fields are not
@@ -383,7 +383,7 @@ especially relevant in recurrent networks or sequence processing.
383
383
 
384
384
  #### connect
385
385
 
386
- `(target: import("D:/code-practice/NeatapticTS/src/architecture/node").default | import("D:/code-practice/NeatapticTS/src/architecture/layer").default | import("D:/code-practice/NeatapticTS/src/architecture/group").default, method: unknown, weight: number | undefined) => import("D:/code-practice/NeatapticTS/src/architecture/connection").default[]`
386
+ `(target: import("C:/NeatapticTS/src/architecture/node").default | import("C:/NeatapticTS/src/architecture/layer").default | import("C:/NeatapticTS/src/architecture/group").default, method: unknown, weight: number | undefined) => import("C:/NeatapticTS/src/architecture/connection").default[]`
387
387
 
388
388
  Establishes connections from all nodes in this group to a target Group, Layer, or Node.
389
389
  The connection pattern (e.g., all-to-all, one-to-one) can be specified.
@@ -404,7 +404,7 @@ Stores connection information related to this group.
404
404
 
405
405
  #### disconnect
406
406
 
407
- `(target: import("D:/code-practice/NeatapticTS/src/architecture/node").default | import("D:/code-practice/NeatapticTS/src/architecture/group").default, twosided: boolean) => void`
407
+ `(target: import("C:/NeatapticTS/src/architecture/node").default | import("C:/NeatapticTS/src/architecture/group").default, twosided: boolean) => void`
408
408
 
409
409
  Removes connections between nodes in this group and a target Group or Node.
410
410
 
@@ -414,7 +414,7 @@ Parameters:
414
414
 
415
415
  #### gate
416
416
 
417
- `(connections: import("D:/code-practice/NeatapticTS/src/architecture/connection").default | import("D:/code-practice/NeatapticTS/src/architecture/connection").default[], method: unknown) => void`
417
+ `(connections: import("C:/NeatapticTS/src/architecture/connection").default | import("C:/NeatapticTS/src/architecture/connection").default[], method: unknown) => void`
418
418
 
419
419
  Configures nodes within this group to act as gates for the specified connection(s).
420
420
  Gating allows the output of a node in this group to modulate the flow of signal through the gated connection.
@@ -504,7 +504,7 @@ Returns: An array containing the activation value of each node in the layer afte
504
504
 
505
505
  #### attention
506
506
 
507
- `(size: number, heads: number) => import("D:/code-practice/NeatapticTS/src/architecture/layer").default`
507
+ `(size: number, heads: number) => import("C:/NeatapticTS/src/architecture/layer").default`
508
508
 
509
509
  Creates a multi-head self-attention layer (stub implementation).
510
510
 
@@ -516,7 +516,7 @@ Returns: A new Layer instance representing an attention layer.
516
516
 
517
517
  #### batchNorm
518
518
 
519
- `(size: number) => import("D:/code-practice/NeatapticTS/src/architecture/layer").default`
519
+ `(size: number) => import("C:/NeatapticTS/src/architecture/layer").default`
520
520
 
521
521
  Creates a batch normalization layer.
522
522
  Applies batch normalization to the activations of the nodes in this layer during activation.
@@ -535,7 +535,7 @@ This is typically done before processing a new input sequence or sample.
535
535
 
536
536
  #### connect
537
537
 
538
- `(target: import("D:/code-practice/NeatapticTS/src/architecture/node").default | import("D:/code-practice/NeatapticTS/src/architecture/layer").default | import("D:/code-practice/NeatapticTS/src/architecture/group").default, method: unknown, weight: number | undefined) => import("D:/code-practice/NeatapticTS/src/architecture/connection").default[]`
538
+ `(target: import("C:/NeatapticTS/src/architecture/node").default | import("C:/NeatapticTS/src/architecture/layer").default | import("C:/NeatapticTS/src/architecture/group").default, method: unknown, weight: number | undefined) => import("C:/NeatapticTS/src/architecture/connection").default[]`
539
539
 
540
540
  Connects this layer's output to a target component (Layer, Group, or Node).
541
541
 
@@ -560,7 +560,7 @@ by the network or higher-level structures rather than directly by the layer itse
560
560
 
561
561
  #### conv1d
562
562
 
563
- `(size: number, kernelSize: number, stride: number, padding: number) => import("D:/code-practice/NeatapticTS/src/architecture/layer").default`
563
+ `(size: number, kernelSize: number, stride: number, padding: number) => import("C:/NeatapticTS/src/architecture/layer").default`
564
564
 
565
565
  Creates a 1D convolutional layer (stub implementation).
566
566
 
@@ -574,7 +574,7 @@ Returns: A new Layer instance representing a 1D convolutional layer.
574
574
 
575
575
  #### dense
576
576
 
577
- `(size: number) => import("D:/code-practice/NeatapticTS/src/architecture/layer").default`
577
+ `(size: number) => import("C:/NeatapticTS/src/architecture/layer").default`
578
578
 
579
579
  Creates a standard fully connected (dense) layer.
580
580
 
@@ -588,7 +588,7 @@ Returns: A new Layer instance configured as a dense layer.
588
588
 
589
589
  #### disconnect
590
590
 
591
- `(target: import("D:/code-practice/NeatapticTS/src/architecture/node").default | import("D:/code-practice/NeatapticTS/src/architecture/group").default, twosided: boolean | undefined) => void`
591
+ `(target: import("C:/NeatapticTS/src/architecture/node").default | import("C:/NeatapticTS/src/architecture/group").default, twosided: boolean | undefined) => void`
592
592
 
593
593
  Removes connections between this layer's nodes and a target Group or Node.
594
594
 
@@ -603,7 +603,7 @@ Layer-level dropout takes precedence over node-level dropout for nodes in this l
603
603
 
604
604
  #### gate
605
605
 
606
- `(connections: import("D:/code-practice/NeatapticTS/src/architecture/connection").default[], method: unknown) => void`
606
+ `(connections: import("C:/NeatapticTS/src/architecture/connection").default[], method: unknown) => void`
607
607
 
608
608
  Applies gating to a set of connections originating from this layer's output group.
609
609
 
@@ -616,7 +616,7 @@ Parameters:
616
616
 
617
617
  #### gru
618
618
 
619
- `(size: number) => import("D:/code-practice/NeatapticTS/src/architecture/layer").default`
619
+ `(size: number) => import("C:/NeatapticTS/src/architecture/layer").default`
620
620
 
621
621
  Creates a Gated Recurrent Unit (GRU) layer.
622
622
 
@@ -631,7 +631,7 @@ Returns: A new Layer instance configured as a GRU layer.
631
631
 
632
632
  #### input
633
633
 
634
- `(from: import("D:/code-practice/NeatapticTS/src/architecture/layer").default | import("D:/code-practice/NeatapticTS/src/architecture/group").default, method: unknown, weight: number | undefined) => import("D:/code-practice/NeatapticTS/src/architecture/connection").default[]`
634
+ `(from: import("C:/NeatapticTS/src/architecture/layer").default | import("C:/NeatapticTS/src/architecture/group").default, method: unknown, weight: number | undefined) => import("C:/NeatapticTS/src/architecture/connection").default[]`
635
635
 
636
636
  Handles the connection logic when this layer is the *target* of a connection.
637
637
 
@@ -663,7 +663,7 @@ Returns: `true` if the object has `set` and `nodes` properties matching a Group,
663
663
 
664
664
  #### layerNorm
665
665
 
666
- `(size: number) => import("D:/code-practice/NeatapticTS/src/architecture/layer").default`
666
+ `(size: number) => import("C:/NeatapticTS/src/architecture/layer").default`
667
667
 
668
668
  Creates a layer normalization layer.
669
669
  Applies layer normalization to the activations of the nodes in this layer during activation.
@@ -675,7 +675,7 @@ Returns: A new Layer instance configured as a layer normalization layer.
675
675
 
676
676
  #### lstm
677
677
 
678
- `(size: number) => import("D:/code-practice/NeatapticTS/src/architecture/layer").default`
678
+ `(size: number) => import("C:/NeatapticTS/src/architecture/layer").default`
679
679
 
680
680
  Creates a Long Short-Term Memory (LSTM) layer.
681
681
 
@@ -690,7 +690,7 @@ Returns: A new Layer instance configured as an LSTM layer.
690
690
 
691
691
  #### memory
692
692
 
693
- `(size: number, memory: number) => import("D:/code-practice/NeatapticTS/src/architecture/layer").default`
693
+ `(size: number, memory: number) => import("C:/NeatapticTS/src/architecture/layer").default`
694
694
 
695
695
  Creates a Memory layer, designed to hold state over a fixed number of time steps.
696
696
 
@@ -812,7 +812,7 @@ Returns: Array of output vectors, each length equals this.output
812
812
 
813
813
  #### activateRaw
814
814
 
815
- `(input: number[], training: boolean, maxActivationDepth: number) => import("D:/code-practice/NeatapticTS/src/architecture/activationArrayPool").ActivationArray`
815
+ `(input: number[], training: boolean, maxActivationDepth: number) => import("C:/NeatapticTS/src/architecture/activationArrayPool").ActivationArray`
816
816
 
817
817
  Raw activation that can return a typed array when pooling is enabled (zero-copy).
818
818
  If reuseActivationArrays=false falls back to standard activate().
@@ -833,7 +833,7 @@ This is typically done before processing a new input sequence in recurrent netwo
833
833
 
834
834
  #### clone
835
835
 
836
- `() => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
836
+ `() => import("C:/NeatapticTS/src/architecture/network").default`
837
837
 
838
838
  Creates a deep copy of the network.
839
839
 
@@ -841,7 +841,7 @@ Returns: A new Network instance that is a clone of the current network.
841
841
 
842
842
  #### connect
843
843
 
844
- `(from: import("D:/code-practice/NeatapticTS/src/architecture/node").default, to: import("D:/code-practice/NeatapticTS/src/architecture/node").default, weight: number | undefined) => import("D:/code-practice/NeatapticTS/src/architecture/connection").default[]`
844
+ `(from: import("C:/NeatapticTS/src/architecture/node").default, to: import("C:/NeatapticTS/src/architecture/node").default, weight: number | undefined) => import("C:/NeatapticTS/src/architecture/connection").default[]`
845
845
 
846
846
  Creates a connection between two nodes in the network.
847
847
  Handles both regular connections and self-connections.
@@ -856,7 +856,7 @@ Returns: An array containing the newly created connection object(s). Typically c
856
856
 
857
857
  #### createMLP
858
858
 
859
- `(inputCount: number, hiddenCounts: number[], outputCount: number) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
859
+ `(inputCount: number, hiddenCounts: number[], outputCount: number) => import("C:/NeatapticTS/src/architecture/network").default`
860
860
 
861
861
  Creates a fully connected, strictly layered MLP network.
862
862
 
@@ -869,7 +869,7 @@ Returns: A new, fully connected, layered MLP
869
869
 
870
870
  #### crossOver
871
871
 
872
- `(network1: import("D:/code-practice/NeatapticTS/src/architecture/network").default, network2: import("D:/code-practice/NeatapticTS/src/architecture/network").default, equal: boolean) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
872
+ `(network1: import("C:/NeatapticTS/src/architecture/network").default, network2: import("C:/NeatapticTS/src/architecture/network").default, equal: boolean) => import("C:/NeatapticTS/src/architecture/network").default`
873
873
 
874
874
  Creates a new offspring network by performing crossover between two parent networks.
875
875
  This method implements the crossover mechanism inspired by the NEAT algorithm and described
@@ -887,7 +887,7 @@ Returns: A new Network instance representing the offspring.
887
887
 
888
888
  #### deserialize
889
889
 
890
- `(data: [number[], number[], string[], { from: number; to: number; weight: number; gater: number | null; }[], number, number] | unknown[], inputSize: number | undefined, outputSize: number | undefined) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
890
+ `(data: [number[], number[], string[], { from: number; to: number; weight: number; gater: number | null; }[], number, number] | unknown[], inputSize: number | undefined, outputSize: number | undefined) => import("C:/NeatapticTS/src/architecture/network").default`
891
891
 
892
892
  Creates a Network instance from serialized data produced by `serialize()`.
893
893
  Reconstructs the network structure and state based on the provided arrays.
@@ -902,7 +902,7 @@ Returns: A new Network instance reconstructed from the serialized data.
902
902
 
903
903
  #### disconnect
904
904
 
905
- `(from: import("D:/code-practice/NeatapticTS/src/architecture/node").default, to: import("D:/code-practice/NeatapticTS/src/architecture/node").default) => void`
905
+ `(from: import("C:/NeatapticTS/src/architecture/node").default, to: import("C:/NeatapticTS/src/architecture/node").default) => void`
906
906
 
907
907
  Disconnects two nodes, removing the connection between them.
908
908
  Handles both regular connections and self-connections.
@@ -928,7 +928,7 @@ Falls back internally if prerequisites not met.
928
928
 
929
929
  #### fromJSON
930
930
 
931
- `(json: Record<string, unknown>) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
931
+ `(json: Record<string, unknown>) => import("C:/NeatapticTS/src/architecture/network").default`
932
932
 
933
933
  Reconstructs a network from a JSON object (latest standard).
934
934
  Handles formatVersion, robust error handling, and index-based references.
@@ -940,7 +940,7 @@ Returns: The reconstructed network.
940
940
 
941
941
  #### gate
942
942
 
943
- `(node: import("D:/code-practice/NeatapticTS/src/architecture/node").default, connection: import("D:/code-practice/NeatapticTS/src/architecture/connection").default) => void`
943
+ `(node: import("C:/NeatapticTS/src/architecture/node").default, connection: import("C:/NeatapticTS/src/architecture/connection").default) => void`
944
944
 
945
945
  Gates a connection with a specified node.
946
946
  The activation of the `node` (gater) will modulate the weight of the `connection`.
@@ -976,7 +976,7 @@ Consolidated training stats snapshot.
976
976
 
977
977
  #### mutate
978
978
 
979
- `(method: import("D:/code-practice/NeatapticTS/src/architecture/network/network.mutate").MutationMethod) => void`
979
+ `(method: import("C:/NeatapticTS/src/architecture/network/network.mutate").MutationMethod) => void`
980
980
 
981
981
  Mutates the network's structure or parameters according to the specified method.
982
982
  This is a core operation for neuro-evolutionary algorithms (like NEAT).
@@ -1033,7 +1033,7 @@ Parameters:
1033
1033
 
1034
1034
  #### rebuildConnections
1035
1035
 
1036
- `(net: import("D:/code-practice/NeatapticTS/src/architecture/network").default) => void`
1036
+ `(net: import("C:/NeatapticTS/src/architecture/network").default) => void`
1037
1037
 
1038
1038
  Rebuilds the network's connections array from all per-node connections.
1039
1039
  This ensures that the network.connections array is consistent with the actual
@@ -1047,7 +1047,7 @@ Returns: Example usage:
1047
1047
 
1048
1048
  #### remove
1049
1049
 
1050
- `(node: import("D:/code-practice/NeatapticTS/src/architecture/node").default) => void`
1050
+ `(node: import("C:/NeatapticTS/src/architecture/node").default) => void`
1051
1051
 
1052
1052
  Removes a node from the network.
1053
1053
  This involves:
@@ -1071,7 +1071,7 @@ Should be called after training to ensure inference is unaffected by previous dr
1071
1071
 
1072
1072
  #### serialize
1073
1073
 
1074
- `() => [number[], number[], string[], import("D:/code-practice/NeatapticTS/src/architecture/network/network.serialize").SerializedConnection[], number, number]`
1074
+ `() => [number[], number[], string[], import("C:/NeatapticTS/src/architecture/network/network.serialize").SerializedConnection[], number, number]`
1075
1075
 
1076
1076
  Lightweight tuple serializer delegating to network.serialize.ts
1077
1077
 
@@ -1118,7 +1118,7 @@ Returns: A JSON-compatible object representing the network.
1118
1118
 
1119
1119
  #### toONNX
1120
1120
 
1121
- `() => import("D:/code-practice/NeatapticTS/src/architecture/network/network.onnx").OnnxModel`
1121
+ `() => import("C:/NeatapticTS/src/architecture/network/network.onnx").OnnxModel`
1122
1122
 
1123
1123
  Exports the network to ONNX format (JSON object, minimal MLP support).
1124
1124
  Only standard feedforward architectures and standard activations are supported.
@@ -1128,7 +1128,7 @@ Returns: ONNX model as a JSON object.
1128
1128
 
1129
1129
  #### ungate
1130
1130
 
1131
- `(connection: import("D:/code-practice/NeatapticTS/src/architecture/connection").default) => void`
1131
+ `(connection: import("C:/NeatapticTS/src/architecture/connection").default) => void`
1132
1132
 
1133
1133
  Removes the gate from a specified connection.
1134
1134
  The connection will no longer be modulated by its gater node.
@@ -1192,7 +1192,7 @@ Global index counter for assigning unique indices to nodes.
1192
1192
 
1193
1193
  #### _safeUpdateWeight
1194
1194
 
1195
- `(connection: import("D:/code-practice/NeatapticTS/src/architecture/connection").default, delta: number) => void`
1195
+ `(connection: import("C:/NeatapticTS/src/architecture/connection").default, delta: number) => void`
1196
1196
 
1197
1197
  Internal helper to safely update a connection weight with clipping and NaN checks.
1198
1198
 
@@ -1296,7 +1296,7 @@ Useful for starting a new activation sequence (e.g., for a new input pattern).
1296
1296
 
1297
1297
  #### connect
1298
1298
 
1299
- `(target: import("D:/code-practice/NeatapticTS/src/architecture/node").default | { nodes: import("D:/code-practice/NeatapticTS/src/architecture/node").default[]; }, weight: number | undefined) => import("D:/code-practice/NeatapticTS/src/architecture/connection").default[]`
1299
+ `(target: import("C:/NeatapticTS/src/architecture/node").default | { nodes: import("C:/NeatapticTS/src/architecture/node").default[]; }, weight: number | undefined) => import("C:/NeatapticTS/src/architecture/connection").default[]`
1300
1300
 
1301
1301
  Creates a connection from this node to a target node or all nodes in a group.
1302
1302
 
@@ -1316,7 +1316,7 @@ The derivative of the activation function evaluated at the node's current state.
1316
1316
 
1317
1317
  #### disconnect
1318
1318
 
1319
- `(target: import("D:/code-practice/NeatapticTS/src/architecture/node").default, twosided: boolean) => void`
1319
+ `(target: import("C:/NeatapticTS/src/architecture/node").default, twosided: boolean) => void`
1320
1320
 
1321
1321
  Removes the connection from this node to the target node.
1322
1322
 
@@ -1330,7 +1330,7 @@ Stores error values calculated during backpropagation.
1330
1330
 
1331
1331
  #### fromJSON
1332
1332
 
1333
- `(json: { bias: number; type: string; squash: string; mask: number; }) => import("D:/code-practice/NeatapticTS/src/architecture/node").default`
1333
+ `(json: { bias: number; type: string; squash: string; mask: number; }) => import("C:/NeatapticTS/src/architecture/node").default`
1334
1334
 
1335
1335
  Creates a Node instance from a JSON object.
1336
1336
 
@@ -1341,7 +1341,7 @@ Returns: A new Node instance configured according to the JSON object.
1341
1341
 
1342
1342
  #### gate
1343
1343
 
1344
- `(connections: import("D:/code-practice/NeatapticTS/src/architecture/connection").default | import("D:/code-practice/NeatapticTS/src/architecture/connection").default[]) => void`
1344
+ `(connections: import("C:/NeatapticTS/src/architecture/connection").default | import("C:/NeatapticTS/src/architecture/connection").default[]) => void`
1345
1345
 
1346
1346
  Makes this node gate the provided connection(s).
1347
1347
  The connection's gain will be controlled by this node's activation value.
@@ -1363,7 +1363,7 @@ Internal flag to detect cycles during activation
1363
1363
 
1364
1364
  #### isConnectedTo
1365
1365
 
1366
- `(target: import("D:/code-practice/NeatapticTS/src/architecture/node").default) => boolean`
1366
+ `(target: import("C:/NeatapticTS/src/architecture/node").default) => boolean`
1367
1367
 
1368
1368
  Checks if this node is connected to another node.
1369
1369
 
@@ -1374,7 +1374,7 @@ Returns: True if connected, otherwise false.
1374
1374
 
1375
1375
  #### isProjectedBy
1376
1376
 
1377
- `(node: import("D:/code-practice/NeatapticTS/src/architecture/node").default) => boolean`
1377
+ `(node: import("C:/NeatapticTS/src/architecture/node").default) => boolean`
1378
1378
 
1379
1379
  Checks if the given node has a direct outgoing connection to this node.
1380
1380
  Considers both regular incoming connections and the self-connection.
@@ -1386,7 +1386,7 @@ Returns: True if the given node projects to this node, false otherwise.
1386
1386
 
1387
1387
  #### isProjectingTo
1388
1388
 
1389
- `(node: import("D:/code-practice/NeatapticTS/src/architecture/node").default) => boolean`
1389
+ `(node: import("C:/NeatapticTS/src/architecture/node").default) => boolean`
1390
1390
 
1391
1391
  Checks if this node has a direct outgoing connection to the given node.
1392
1392
  Considers both regular outgoing connections and the self-connection.
@@ -1506,7 +1506,7 @@ Determines behavior (e.g., input nodes don't have biases modified typically, out
1506
1506
 
1507
1507
  #### ungate
1508
1508
 
1509
- `(connections: import("D:/code-practice/NeatapticTS/src/architecture/connection").default | import("D:/code-practice/NeatapticTS/src/architecture/connection").default[]) => void`
1509
+ `(connections: import("C:/NeatapticTS/src/architecture/connection").default | import("C:/NeatapticTS/src/architecture/connection").default[]) => void`
1510
1510
 
1511
1511
  Removes this node's gating control over the specified connection(s).
1512
1512
  Resets the connection's gain to 1 and removes it from the `connections.gated` list.
@@ -1518,7 +1518,7 @@ Parameters:
1518
1518
 
1519
1519
  ### acquireNode
1520
1520
 
1521
- `(opts: import("D:/code-practice/NeatapticTS/src/architecture/nodePool").AcquireNodeOptions) => import("D:/code-practice/NeatapticTS/src/architecture/node").default`
1521
+ `(opts: import("C:/NeatapticTS/src/architecture/nodePool").AcquireNodeOptions) => import("C:/NeatapticTS/src/architecture/node").default`
1522
1522
 
1523
1523
  ### AcquireNodeOptions
1524
1524
 
@@ -1530,7 +1530,7 @@ Options bag for acquiring a node.
1530
1530
 
1531
1531
  ### releaseNode
1532
1532
 
1533
- `(node: import("D:/code-practice/NeatapticTS/src/architecture/node").default) => void`
1533
+ `(node: import("C:/NeatapticTS/src/architecture/node").default) => void`
1534
1534
 
1535
1535
  ### resetNodePool
1536
1536
 
@@ -1547,7 +1547,7 @@ Validation ensures that input spatial * channels product equals the previous lay
1547
1547
 
1548
1548
  ### exportToONNX
1549
1549
 
1550
- `(network: import("D:/code-practice/NeatapticTS/src/architecture/network").default, options: import("D:/code-practice/NeatapticTS/src/architecture/network/network.onnx").OnnxExportOptions) => import("D:/code-practice/NeatapticTS/src/architecture/network/network.onnx").OnnxModel`
1550
+ `(network: import("C:/NeatapticTS/src/architecture/network").default, options: import("C:/NeatapticTS/src/architecture/network/network.onnx").OnnxExportOptions) => import("C:/NeatapticTS/src/architecture/network/network.onnx").OnnxModel`
1551
1551
 
1552
1552
  Export a minimal multilayer perceptron Network to a lightweight ONNX JSON object.
1553
1553
 
@@ -1562,7 +1562,7 @@ Constraints: See module doc. Throws descriptive errors when assumptions violated
1562
1562
 
1563
1563
  ### importFromONNX
1564
1564
 
1565
- `(onnx: import("D:/code-practice/NeatapticTS/src/architecture/network/network.onnx").OnnxModel) => import("D:/code-practice/NeatapticTS/src/architecture/network").default`
1565
+ `(onnx: import("C:/NeatapticTS/src/architecture/network/network.onnx").OnnxModel) => import("C:/NeatapticTS/src/architecture/network").default`
1566
1566
 
1567
1567
  Import a model previously produced by {@link exportToONNX} into a fresh Network instance.
1568
1568