Prototype: GA evolution loop on toy prediction problem #66
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: #61
Question
Build a minimal throwaway prototype in Nim: a GA that evolves a small ANN (e.g., 10→4→1) to predict a simple periodic function (like sin(x) sampled with noise). Purpose: validate the GA→ANN→fitness pipeline works before wiring it into a bot. Tests: population init, fitness eval, selection, crossover, mutation, champion tracking. Throwaway — not production code, just proof the mechanism works.
Blocked by #65 — GA parameters from research inform the prototype's hyperparameters.
Resolution
Built:
prototypes/ga_gun_spike/ga_spike.nim— 111-line pure-Nim GA that evolves a 10-4-1 tanh ANN (49 weights) to predict sin(x) from a sliding window.Pipeline validated:
Results:
nim c -r, Nim 2.2.4)Commit:
eee48deonresearch/goto-controller