Gate question: can a ring-based label (a 2-D offset from the belief centre to
where a ray ring touches the enemy) be predicted from our own belief state?
extract_ring.py + bench_ring.nim answer it by MERGING the ring label into
samples_realistic.ndjson, so the ring label and the incumbent 1-D aim-error
label are scored on the SAME rows, the SAME features and the SAME round-group
folds. 8119 of 8676 DrussGT shot rows get a ring label.
Verdict: worse, not richer.
* The spike's headline is an artifact. The belief is already accurate to
under 3 px, so a belief-anchored ring touches the enemy on its FIRST ray
step: ringK = 1.0000 for all 172723 extracted events. The "100% at power
<= 1.5, 0.2% at power 3.0" pattern is just whether 1 * bulletSpeed fits
inside the +-18 px belief-error ball. The literal ring label is the 1-tick
belief extrapolation error, clipped to BotRadius.
* Same-tick it scores better than the 1-D label (ELM/const 0.2628 vs 0.3629)
but a single feature, beliefTgtLatVel, already gets -71.8 of the -73.7
points: the model is re-deriving beliefTgtLatVel * age / beliefDist, i.e.
its own inputs.
* Under --prev it collapses to ratio 0.9819 (-1.8%). It depends MORE on the
same-tick assumption than the 1-D label (-63.7% -> -1.0%), not less.
* Repaired (--kintercept: k = round(believed range / bullet speed), mean k 42,
no clipping, 60 px spread) the label is well posed and completely
unpredictable: best feature +0.5%, best ELM -0.4%, best |corr| 0.09.
So: the belief-extrapolation error at intercept time is not a function of what
we believed, it is the opponent's unmodelled acceleration. Do not ship a ring
label. common_libs/guns/waveelm.nim is the right shape for the same idea and
is a different thing: it fires the ring from the SHOOTER, so the ring measures
an interception radius and bearing and the ELM learns a bias correction to it.
109 lines
6.4 KiB
Plaintext
109 lines
6.4 KiB
Plaintext
== dataset: ring_ki_prev.ndjson.merged ==
|
|
n = 8308 groups = 40 k mean = 42.26
|
|
|
|
== label distribution (rad, same units for both) ==
|
|
ring mean -0.00248 sd 0.15031 |p1| 0.39813 |p50| 0.00149 |p90| 0.17493 max|.| 0.65861
|
|
1-D aim mean +0.11862 sd 1.15723 |p1| 2.89396 |p50| 0.01136 |p90| 1.80170 max|.| 3.14139
|
|
|
|
########## LABEL = label (RING lateral aim correction) ##########
|
|
|
|
== (a) constant baseline, 5-fold by round-group ==
|
|
constant per-fold 0.1502 +- 0.0046 pooled RMSE/MAE/medAE 0.1504/0.1151/0.0895
|
|
|
|
== (B) ridge feature ablation (pooled held-out) ==
|
|
feature set | RMSE MAE medAE | per-fold RMSE +- sd | vs const
|
|
baseline 6 (belief geometry) | 0.1501 0.1146 0.0889 | 0.1499 +- 0.0052 | -0.0003
|
|
+ scan age | 0.1500 0.1146 0.0890 | 0.1499 +- 0.0051 | -0.0003
|
|
+ believed intercept geom | 0.1503 0.1147 0.0888 | 0.1502 +- 0.0051 | -0.0000
|
|
+ our own state | 0.1500 0.1147 0.0891 | 0.1499 +- 0.0050 | -0.0003
|
|
+ context | 0.1500 0.1146 0.0890 | 0.1499 +- 0.0050 | -0.0003
|
|
+ scan + intercept | 0.1504 0.1147 0.0890 | 0.1503 +- 0.0051 | +0.0000
|
|
ALL 21 | 0.1505 0.1148 0.0891 | 0.1504 +- 0.0052 | +0.0001
|
|
|
|
-- single-feature ridge (held-out, sorted) --
|
|
cosPred RMSE 0.15006 (const 0.15036, gain +0.20%)
|
|
cosRel RMSE 0.15011 (const 0.15036, gain +0.17%)
|
|
tgtLatVel RMSE 0.15015 (const 0.15036, gain +0.14%)
|
|
dist RMSE 0.15017 (const 0.15036, gain +0.13%)
|
|
losRate RMSE 0.15018 (const 0.15036, gain +0.12%)
|
|
predErr RMSE 0.15018 (const 0.15036, gain +0.12%)
|
|
disp RMSE 0.15018 (const 0.15036, gain +0.12%)
|
|
scanAge RMSE 0.15018 (const 0.15036, gain +0.12%)
|
|
logScan RMSE 0.15018 (const 0.15036, gain +0.12%)
|
|
everScanned RMSE 0.15018 (const 0.15036, gain +0.12%)
|
|
gunHeat RMSE 0.15019 (const 0.15036, gain +0.12%)
|
|
sinRel RMSE 0.15022 (const 0.15036, gain +0.10%)
|
|
sinPred RMSE 0.15022 (const 0.15036, gain +0.10%)
|
|
power RMSE 0.15025 (const 0.15036, gain +0.08%)
|
|
scanGap RMSE 0.15025 (const 0.15036, gain +0.08%)
|
|
ownSpeed RMSE 0.15025 (const 0.15036, gain +0.07%)
|
|
closing RMSE 0.15028 (const 0.15036, gain +0.06%)
|
|
tof RMSE 0.15031 (const 0.15036, gain +0.03%)
|
|
tgtSpeed RMSE 0.15044 (const 0.15036, gain -0.05%)
|
|
|
|
== (C) ELM sweep H{16,32,64,128} x lambda{1e-6..1e2}, decay=1.0 (20 cfg x 5 folds) ==
|
|
5/20 configs, 2.s
|
|
10/20 configs, 5.s
|
|
15/20 configs, 10.s
|
|
20/20 configs, 20.s
|
|
top 6 (ALL 21 features), per-fold RMSE | mean
|
|
H= 128 lam= 1.e+02 | 0.1509 0.1492 0.1547 0.1545 0.1411 | mean 0.15007 (-0.2% vs const)
|
|
H= 32 lam= 1.e+02 | 0.1509 0.1494 0.1552 0.1537 0.1416 | mean 0.15017 (-0.1% vs const)
|
|
H= 64 lam= 1.e+02 | 0.1509 0.1493 0.1550 0.1544 0.1414 | mean 0.15020 (-0.1% vs const)
|
|
H= 16 lam= 1.e+02 | 0.1509 0.1491 0.1555 0.1542 0.1419 | mean 0.15030 (-0.0% vs const)
|
|
H= 32 lam= 1.e+00 | 0.1511 0.1494 0.1546 0.1560 0.1409 | mean 0.15041 (+0.0% vs const)
|
|
H= 64 lam= 1.e+00 | 0.1508 0.1488 0.1539 0.1576 0.1411 | mean 0.15046 (+0.1% vs const)
|
|
BEST H=128 lam=1.e+02: pooled RMSE/MAE/medAE 0.15021/0.11474/0.08866 delta-vs-const -0.00012 (better on 2/5)
|
|
ELM/const pooled RMSE ratio 0.9990
|
|
|
|
########## LABEL = label1d (incumbent 1-D aim error) ##########
|
|
|
|
== (a) constant baseline, 5-fold by round-group ==
|
|
constant per-fold 1.1494 +- 0.0428 pooled RMSE/MAE/medAE 1.1574/0.8129/0.4542
|
|
|
|
== (B) ridge feature ablation (pooled held-out) ==
|
|
feature set | RMSE MAE medAE | per-fold RMSE +- sd | vs const
|
|
baseline 6 (belief geometry) | 1.1558 0.8093 0.4724 | 1.1479 +- 0.0425 | -0.0016
|
|
+ scan age | 1.1537 0.8064 0.4662 | 1.1459 +- 0.0420 | -0.0037
|
|
+ believed intercept geom | 1.1496 0.7987 0.4485 | 1.1420 +- 0.0415 | -0.0078
|
|
+ our own state | 1.1544 0.8081 0.4669 | 1.1465 +- 0.0428 | -0.0030
|
|
+ context | 1.1534 0.8075 0.4686 | 1.1456 +- 0.0422 | -0.0040
|
|
+ scan + intercept | 1.1492 0.8000 0.4532 | 1.1415 +- 0.0415 | -0.0082
|
|
ALL 21 | 1.1496 0.8025 0.4566 | 1.1418 +- 0.0428 | -0.0077
|
|
|
|
-- single-feature ridge (held-out, sorted) --
|
|
predErr RMSE 1.14262 (const 1.15739, gain +1.28%)
|
|
tgtLatVel RMSE 1.14701 (const 1.15739, gain +0.90%)
|
|
tof RMSE 1.14800 (const 1.15739, gain +0.81%)
|
|
closing RMSE 1.14805 (const 1.15739, gain +0.81%)
|
|
power RMSE 1.14879 (const 1.15739, gain +0.74%)
|
|
tgtSpeed RMSE 1.14889 (const 1.15739, gain +0.73%)
|
|
losRate RMSE 1.14918 (const 1.15739, gain +0.71%)
|
|
sinPred RMSE 1.14940 (const 1.15739, gain +0.69%)
|
|
gunHeat RMSE 1.14941 (const 1.15739, gain +0.69%)
|
|
disp RMSE 1.14941 (const 1.15739, gain +0.69%)
|
|
scanAge RMSE 1.14943 (const 1.15739, gain +0.69%)
|
|
logScan RMSE 1.14943 (const 1.15739, gain +0.69%)
|
|
everScanned RMSE 1.14943 (const 1.15739, gain +0.69%)
|
|
dist RMSE 1.14943 (const 1.15739, gain +0.69%)
|
|
scanGap RMSE 1.14943 (const 1.15739, gain +0.69%)
|
|
sinRel RMSE 1.14945 (const 1.15739, gain +0.69%)
|
|
cosRel RMSE 1.14970 (const 1.15739, gain +0.66%)
|
|
ownSpeed RMSE 1.14992 (const 1.15739, gain +0.65%)
|
|
cosPred RMSE 1.14995 (const 1.15739, gain +0.64%)
|
|
|
|
== (C) ELM sweep H{16,32,64,128} x lambda{1e-6..1e2}, decay=1.0 (20 cfg x 5 folds) ==
|
|
5/20 configs, 2.s
|
|
10/20 configs, 5.s
|
|
15/20 configs, 10.s
|
|
20/20 configs, 20.s
|
|
top 6 (ALL 21 features), per-fold RMSE | mean
|
|
H= 128 lam= 1.e+00 | 1.1599 1.1643 1.1783 1.0653 1.1213 | mean 1.13784 (-1.7% vs const)
|
|
H= 64 lam= 1.e+00 | 1.1580 1.1654 1.1794 1.0653 1.1214 | mean 1.13789 (-1.7% vs const)
|
|
H= 128 lam= 1.e-02 | 1.1579 1.1662 1.1839 1.0662 1.1189 | mean 1.13863 (-1.6% vs const)
|
|
H= 64 lam= 1.e-02 | 1.1586 1.1632 1.1846 1.0667 1.1223 | mean 1.13908 (-1.6% vs const)
|
|
H= 64 lam= 1.e-04 | 1.1587 1.1635 1.1853 1.0671 1.1233 | mean 1.13956 (-1.5% vs const)
|
|
H= 64 lam= 1.e-06 | 1.1587 1.1635 1.1853 1.0671 1.1233 | mean 1.13957 (-1.5% vs const)
|
|
BEST H=128 lam=1.e+00: pooled RMSE/MAE/medAE 1.14535/0.79943/0.46483 delta-vs-const -0.01158 (better on 5/5)
|
|
ELM/const pooled RMSE ratio 0.9896
|