ANN + GA modules with self-checks #82
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#80
What to build
Pure-logic modules for the feedforward ANN (91→8→1, tanh activation, 745 weights) and mutation-only GA (population management, truncation selection, Gaussian mutation on all weights, single elite with re-evaluation). No game dependency — these are standalone modules with
when isMainModuleself-checks.ANN: flat weight layout [W1(91×8), b1(8), W2(8×1), b2(1)]. Pure
forward(weights, inputs) → floatinterface.GA: population 64–200, σ = 0.005–0.01, top 20–50% truncation selection, no crossover, single elite. Parameters as constants (calibration knobs).
Builds on the pattern from
prototypes/ga_gun_spike/ga_spike.nimbut production-shaped and scaled to 91→8→1.Acceptance criteria
when isMainModulewithdoAssertvalidates forward passwhen isMainModulewithdoAssertvalidates evolution improves fitness-d:dangerBlocked by
None — can start immediately.