elm_bench: relabel to true-impact movement correction
Add extract_predict.py, which builds the movement-prediction corpus: for each sampled tick with the shooter fixed to DevControlBot (power 2), the label is wrap(trueImpactBearing - geometricInterceptBearing), solved against the observer's true trajectory. Unlike the old opponent-aim-error label this is centred near zero (mean -0.33 deg, sd 18.3 deg). Add train_predict.nim: round-group 5-fold evaluation, baselines (plain intercept / constant), small H x lambda sweep, prediction-mean centring check, and a |correction|>tau gate calibrated on held-out folds, then export. Delete the old train_elm_gun.nim (it wrote the live weights from the old label) and mark extract_realistic.py deprecated.
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Extract aim-error samples with ONLY shooter-observable features.
|
||||
"""DEPRECATED — the OPPONENT-AIM-BIAS label. DO NOT USE for the gun.
|
||||
|
||||
This measures how far the SHOOTER's own shot landed from a correct intercept,
|
||||
which is the opponent's aim error, not anything about the enemy's movement.
|
||||
Using it as our own correction is exactly the bug that was removed: it taught the
|
||||
gun to aim like the opponent, adding a constant +0.042 rad bias. The movement-
|
||||
prediction replacement is extract_predict.py (label = true impact - geometric
|
||||
intercept). Kept only so the old bench_realistic.nim experiments reproduce.
|
||||
|
||||
Extract aim-error samples with ONLY shooter-observable features.
|
||||
|
||||
Same LABEL as extract.py (ground truth correction, unchanged), same samples
|
||||
(same BulletFiredEvents), but every feature is derived from what the shooter
|
||||
|
||||
Reference in New Issue
Block a user