Extractors, benchmarks and analysis for "can we predict an opponent's aim error from our own belief state?". All labels come from BulletFiredEvents; all features come only from the shooter's own state and its ScannedBotEvent history (the target's true state is used for the label and never for a feature, verified by a ground-truth-poisoning re-extraction). extract.py / extract_realistic.py label + oracle features / realistic ones gen_analysis.py, analyse_realistic.py, audit_independent.py bench.nim, bench_realistic.nim, cross_opponent.nim, online.nim gen/*.ndjson the per-opponent sample tables README.md the write-up, ~1200 lines Headline: DrussGT applies about 13% of the correct lead, and that 13% is computable from one feature (beliefPredErr) as label ~ 0.8663*predErr + 0.0418. ELM ALL-21 pools to RMSE 0.4220 against a constant 1.1463 (-63%). The network is not the finding; the single linear term is. Cross-opponent, --prev leakage audit and an independent re-derivation are in the README. The top-level samples_realistic*.ndjson are byte-identical to gen/DrussGT* and are gitignored; gen/ is the authoritative copy.
152 lines
8.0 KiB
Plaintext
152 lines
8.0 KiB
Plaintext
== dataset (realistic features) ==
|
|
n = 8676 mean = 0.1136 std = 1.1462 never-scanned rows: 0
|
|
|
|
== baselines (5-fold by round-group) ==
|
|
(a) constant mean : 1.1406 +- 0.0330
|
|
(b) belief-distance-binned : 1.1409 +- 0.0333
|
|
(c) ridge on belief base 7 : 0.9339 +- 0.0246
|
|
pooled const RMSE/MAE/medAE 1.1463 / 0.7958 / 0.4284
|
|
pooled dist RMSE/MAE/medAE 1.1467 / 0.7967 / 0.4287
|
|
pooled rdg7 RMSE/MAE/medAE 0.9343 / 0.6226 / 0.3548
|
|
|
|
== (A) ridge feature ablation (pooled held-out) ==
|
|
feature set | RMSE MAE medAE | per-fold RMSE +- sd
|
|
baseline 6 (belief geometry) | 1.1448 0.7921 0.4428 | 1.1389 +- 0.0331
|
|
+ scan age | 0.9346 0.6229 0.3564 | 0.9342 +- 0.0242
|
|
+ believed intercept geom | 0.4379 0.1714 0.1089 | 0.4375 +- 0.0442
|
|
+ our own state | 0.9347 0.6231 0.3553 | 0.9343 +- 0.0241
|
|
+ context | 0.9342 0.6228 0.3546 | 0.9338 +- 0.0257
|
|
+ scan + intercept | 0.4381 0.1715 0.1088 | 0.4377 +- 0.0443
|
|
ALL 21 | 0.4383 0.1720 0.1089 | 0.4381 +- 0.0444
|
|
|
|
-- single-feature ridge (constant = {mean(bConst):.4f}) --
|
|
predErr RMSE 0.4398
|
|
tgtLatVel RMSE 0.9358
|
|
closing RMSE 1.1311
|
|
tof RMSE 1.1394
|
|
power RMSE 1.1400
|
|
tgtSpeed RMSE 1.1403
|
|
logScan RMSE 1.1404
|
|
scanAge RMSE 1.1405
|
|
gunHeat RMSE 1.1406
|
|
sinRel RMSE 1.1406
|
|
disp RMSE 1.1406
|
|
scanGap RMSE 1.1406
|
|
everScanned RMSE 1.1406
|
|
dist RMSE 1.1406
|
|
sinPred RMSE 1.1409
|
|
cosRel RMSE 1.1409
|
|
ownSpeed RMSE 1.1411
|
|
cosPred RMSE 1.1518
|
|
losRate RMSE 1.2363
|
|
|
|
== (B) ELM sweep on realistic features (H x lambda x decay, 5 folds each) ==
|
|
[ALL21] 15/60 configs, 6.s
|
|
[ALL21] 30/60 configs, 15.s
|
|
[ALL21] 45/60 configs, 31.s
|
|
[ALL21] 60/60 configs, 65.s
|
|
-- ALL21 top 8 --
|
|
H= 128 lam= 1.e-02 dec= 1.00 | 0.3582 0.4757 0.4153 0.4277 0.4323 | mean 0.4218
|
|
H= 128 lam= 1.e-04 dec= 1.00 | 0.3594 0.4766 0.4171 0.4271 0.4334 | mean 0.4227
|
|
H= 128 lam= 1.e-06 dec= 1.00 | 0.3595 0.4766 0.4171 0.4271 0.4334 | mean 0.4227
|
|
H= 128 lam= 1.e+00 dec= 1.00 | 0.3609 0.4892 0.4185 0.4426 0.4354 | mean 0.4293
|
|
H= 64 lam= 1.e-02 dec= 1.00 | 0.3684 0.4965 0.4335 0.4427 0.4373 | mean 0.4357
|
|
H= 64 lam= 1.e-04 dec= 1.00 | 0.3689 0.4964 0.4339 0.4425 0.4372 | mean 0.4358
|
|
H= 64 lam= 1.e-06 dec= 1.00 | 0.3689 0.4964 0.4339 0.4425 0.4372 | mean 0.4358
|
|
H= 64 lam= 1.e+00 dec= 1.00 | 0.3721 0.5035 0.4326 0.4486 0.4431 | mean 0.4400
|
|
-- ALL21 full ranking tail (worst 3) --
|
|
H= 16 lam= 1.e-02 dec= 0.95 | mean 3.1346
|
|
H= 16 lam= 1.e-04 dec= 0.95 | mean 3.2484
|
|
H= 16 lam= 1.e-06 dec= 0.95 | mean 3.2792
|
|
[base7] 15/60 configs, 4.s
|
|
[base7] 30/60 configs, 10.s
|
|
[base7] 45/60 configs, 21.s
|
|
[base7] 60/60 configs, 46.s
|
|
-- base7 top 8 --
|
|
H= 128 lam= 1.e-06 dec= 1.00 | 0.7657 0.8170 0.7590 0.7457 0.8126 | mean 0.7800
|
|
H= 128 lam= 1.e-04 dec= 1.00 | 0.7714 0.8244 0.7655 0.7521 0.8149 | mean 0.7856
|
|
H= 64 lam= 1.e-06 dec= 1.00 | 0.7939 0.8437 0.7921 0.7653 0.8279 | mean 0.8046
|
|
H= 64 lam= 1.e-04 dec= 1.00 | 0.7946 0.8443 0.7924 0.7674 0.8313 | mean 0.8060
|
|
H= 128 lam= 1.e-02 dec= 1.00 | 0.8005 0.8526 0.7921 0.7766 0.8465 | mean 0.8136
|
|
H= 64 lam= 1.e-02 dec= 1.00 | 0.8188 0.8707 0.8089 0.7984 0.8640 | mean 0.8322
|
|
H= 32 lam= 1.e-04 dec= 1.00 | 0.8250 0.8755 0.8160 0.8077 0.8730 | mean 0.8394
|
|
H= 32 lam= 1.e-06 dec= 1.00 | 0.8250 0.8755 0.8161 0.8079 0.8729 | mean 0.8395
|
|
-- base7 full ranking tail (worst 3) --
|
|
H= 128 lam= 1.e-06 dec= 0.95 | mean 4.1482
|
|
H= 32 lam= 1.e-06 dec= 0.95 | mean 5.7793
|
|
H= 64 lam= 1.e-06 dec= 0.95 | mean 6.7607
|
|
[base6] 15/60 configs, 4.s
|
|
[base6] 30/60 configs, 10.s
|
|
[base6] 45/60 configs, 20.s
|
|
[base6] 60/60 configs, 45.s
|
|
-- base6 top 8 --
|
|
H= 128 lam= 1.e-04 dec= 1.00 | 1.1497 1.1605 1.1573 1.0679 1.1194 | mean 1.1310
|
|
H= 64 lam= 1.e-06 dec= 1.00 | 1.1511 1.1605 1.1556 1.0667 1.1209 | mean 1.1310
|
|
H= 64 lam= 1.e-04 dec= 1.00 | 1.1509 1.1602 1.1546 1.0697 1.1197 | mean 1.1310
|
|
H= 64 lam= 1.e-02 dec= 1.00 | 1.1508 1.1613 1.1540 1.0726 1.1209 | mean 1.1319
|
|
H= 128 lam= 1.e-02 dec= 1.00 | 1.1500 1.1608 1.1556 1.0726 1.1211 | mean 1.1320
|
|
H= 32 lam= 1.e-04 dec= 1.00 | 1.1508 1.1615 1.1545 1.0729 1.1221 | mean 1.1323
|
|
H= 128 lam= 1.e-06 dec= 1.00 | 1.1539 1.1615 1.1600 1.0672 1.1192 | mean 1.1324
|
|
H= 32 lam= 1.e-06 dec= 1.00 | 1.1508 1.1613 1.1550 1.0729 1.1224 | mean 1.1325
|
|
-- base6 full ranking tail (worst 3) --
|
|
H= 32 lam= 1.e-06 dec= 0.95 | mean 5.1310
|
|
H= 16 lam= 1.e-06 dec= 0.95 | mean 6.1210
|
|
H= 128 lam= 1.e-06 dec= 0.95 | mean 8.8051
|
|
[scanonly] 15/60 configs, 4.s
|
|
[scanonly] 30/60 configs, 10.s
|
|
[scanonly] 45/60 configs, 19.s
|
|
[scanonly] 60/60 configs, 42.s
|
|
-- scanonly top 8 --
|
|
H= 128 lam= 1.e-06 dec= 1.00 | 1.1517 1.1721 1.1609 1.0820 1.1309 | mean 1.1395
|
|
H= 64 lam= 1.e-06 dec= 1.00 | 1.1517 1.1721 1.1609 1.0820 1.1309 | mean 1.1395
|
|
H= 32 lam= 1.e-06 dec= 1.00 | 1.1517 1.1721 1.1609 1.0820 1.1309 | mean 1.1395
|
|
H= 16 lam= 1.e-06 dec= 1.00 | 1.1517 1.1721 1.1609 1.0820 1.1310 | mean 1.1395
|
|
H= 128 lam= 1.e-04 dec= 1.00 | 1.1518 1.1721 1.1609 1.0821 1.1311 | mean 1.1396
|
|
H= 64 lam= 1.e-04 dec= 1.00 | 1.1518 1.1721 1.1609 1.0822 1.1312 | mean 1.1396
|
|
H= 32 lam= 1.e-04 dec= 1.00 | 1.1519 1.1722 1.1609 1.0822 1.1313 | mean 1.1397
|
|
H= 32 lam= 1.e+00 dec= 1.00 | 1.1526 1.1726 1.1606 1.0812 1.1315 | mean 1.1397
|
|
-- scanonly full ranking tail (worst 3) --
|
|
H= 32 lam= 1.e-06 dec= 0.95 | mean 1.1883
|
|
H= 64 lam= 1.e-06 dec= 0.95 | mean 1.1883
|
|
H= 128 lam= 1.e-06 dec= 0.95 | mean 1.1884
|
|
|
|
== best config, pooled metrics + paired per-fold check ==
|
|
ALL21 H=128 lam=1.e-02 dec=1.0 mean per-fold RMSE 0.4218 pooled RMSE/MAE/medAE 0.4220/0.1824/0.1095 delta-vs-const -0.7187 (better on 5/5)
|
|
base7 H=128 lam=1.e-06 dec=1.0 mean per-fold RMSE 0.7800 pooled RMSE/MAE/medAE 0.7815/0.5034/0.3084 delta-vs-const -0.3606 (better on 5/5)
|
|
base6 H=128 lam=1.e-04 dec=1.0 mean per-fold RMSE 1.1310 pooled RMSE/MAE/medAE 1.1372/0.7854/0.4429 delta-vs-const -0.0096 (better on 5/5)
|
|
constant pooled RMSE/MAE/medAE 1.1463/0.7958/0.4284 per-fold mean 1.1406
|
|
|
|
== fold-shift robustness (offset +3, no reselection) ==
|
|
ELM 0.4218 const 1.1406 delta -0.7187 per-fold -0.745 -0.653 -0.700 -0.797 -0.699
|
|
|
|
== learning curve (held-out = fold 0; ALL21, best cfg) ==
|
|
train n | RMSE MAE medAE | constant
|
|
50 | 1.5347 1.1342 0.8692 | 1.1551
|
|
100 | 0.7637 0.5439 0.3993 | 1.1551
|
|
200 | 0.5024 0.3062 0.2081 | 1.1551
|
|
400 | 1.1103 0.7852 0.5333 | 1.1551
|
|
800 | 0.4537 0.2695 0.1995 | 1.1551
|
|
1600 | 0.4266 0.2365 0.1498 | 1.1551
|
|
3200 | 0.3679 0.1819 0.1169 | 1.1551
|
|
6400 | 0.3600 0.1708 0.1097 | 1.1551
|
|
6635 | 0.3582 0.1675 0.1054 | 1.1551
|
|
|
|
== (E) scan-age conditional analysis (all rows, in-sample conditional stats) ==
|
|
age is ticks since the SHOOTER last scanned US -- observable to it, not to us.
|
|
bucketing is on the shooter's staleness, used here as a diagnostic of whether
|
|
aim error magnitude is driven by belief staleness at all.
|
|
bucket n frac label mean label sd RMSE(within bucket) medAE(within bucket)
|
|
(-1.,0] 8444 97.3% 0.1065 1.1515 1.1515 0.4329
|
|
(0.,1] 232 2.7% 0.3754 0.8939 0.8939 0.4693
|
|
(1.,2] 0 (too few)
|
|
(2.,3] 0 (too few)
|
|
(3.,5] 0 (too few)
|
|
(5.,8] 0 (too few)
|
|
(8.,13] 0 (too few)
|
|
(13.,21] 0 (too few)
|
|
(21.,inf] 0 (too few)
|
|
(buckets cover 8676 of 8676 rows; sd within bucket vs global sd 1.1462)
|
|
|
|
== (E2) does scan age predict the label? (held-out, bucket-mean predictor) ==
|
|
scan-age-bucketed mean (held-out RMSE): 1.1458 constant: 1.1406
|