- tools/train_neural.py: PyTorch MLP training script that reads JSONL from
GameReplayExporter and exports a compliant ONNX model. Architecture is
1024->512->256->128->1 (tanh) with LayerNorm + Dropout. AdamW optimizer
with cosine LR annealing, gradient clipping, best-checkpoint restore.
Post-export validation via onnxruntime confirms tensor names and shapes.
- tools/requirements.txt: pinned deps (torch 2.3.1, onnx 1.16.1,
onnxruntime 1.18.0 matching the C# package, numpy 1.26.4)
- tools/README.md: end-to-end workflow docs covering self-play, data export,
training options, deployment (hot-swap vs restart), ONNX contract table,
and iterative training guidance
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>