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.
133 lines
4.0 KiB
Plaintext
133 lines
4.0 KiB
Plaintext
# Compiled output
|
|
*.out
|
|
|
|
# Python cache
|
|
__pycache__/
|
|
*.pyc
|
|
*.pyo
|
|
|
|
# Log files
|
|
*.log
|
|
|
|
# Training logs
|
|
*.jsonl
|
|
|
|
# Test binaries (but keep .nim source files)
|
|
**/tests/test_*
|
|
!**/tests/test_*.nim
|
|
!**/tests/test_*.nims
|
|
|
|
# User-specific dev environment
|
|
.envrc
|
|
devbox.json
|
|
devbox.lock
|
|
|
|
# Local settings file (explicit path only - never a wildcard pattern)
|
|
ModularBot_garage/.env
|
|
|
|
# Compiled bot binaries — all builds go to *_garage/out/
|
|
*_garage/out/
|
|
|
|
# Java compiled classes
|
|
*.class
|
|
|
|
# Log and snapshot directories
|
|
**/logs/
|
|
**/snapshots/
|
|
|
|
# Git worktrees
|
|
worktrees/
|
|
|
|
# Nimble puts the bot binary at the garage root (out/ is ignored, this was not)
|
|
*_garage/ModularBot
|
|
|
|
# Test fixtures are data, not logs - the *.jsonl rule above was written for
|
|
# training logs and silently excluded the entire gun-range fixture set.
|
|
!tools/fixtures/**/*.jsonl
|
|
|
|
# Compiled test harnesses have no extension; the test_* rule misses them
|
|
common_libs/tests/tm_measure
|
|
common_libs/tests/run_range
|
|
common_libs/tests/gen_synthetic_fixtures
|
|
common_libs/tests/acceptance_offline_vs_online
|
|
common_libs/tests/measure_power_policy
|
|
common_libs/tests/test_tsetlin_gun
|
|
common_libs/tests/test_tsetlin_live
|
|
common_libs/tests/test_tm_pattern_learning
|
|
|
|
# measurement tool binaries (no extension); sources are measure_*.nim
|
|
tr_bots/*
|
|
|
|
# Measurement-tool binaries (extensionless; their .nim/.py/.txt sources stay tracked)
|
|
common_libs/tests/measure_tm_readapt
|
|
common_libs/tests/measure_tm_pattern_cost
|
|
common_libs/tests/measure_cornering_guns
|
|
common_libs/tests/measure_vbullet_admit_gate
|
|
common_libs/tests/measure_tm_miss_shrink
|
|
common_libs/tests/audit_wave_pairing
|
|
common_libs/tests/compare_pairing
|
|
common_libs/tests/diag_synthetic
|
|
common_libs/tests/diag_automata_validation
|
|
common_libs/tests/diag_tm_pattern_offline
|
|
|
|
# Primary source archive kept locally, NOT tracked (12 MB)
|
|
docs/BitBrain_C_code.zip
|
|
|
|
# raw_recorder build output
|
|
tools/raw_recorder/out/
|
|
tools/raw_recorder/shadow-classes/
|
|
|
|
# _salvage (rescued from /tmp): re-include, but keep the multi-MB legacy bot jars off git.
|
|
# tr_bots/ is otherwise ignored (generated wrappers / build output).
|
|
!tr_bots/_salvage/
|
|
tr_bots/_salvage/*
|
|
!tr_bots/_salvage/README.md
|
|
!tr_bots/_salvage/legacy_bots/
|
|
tr_bots/_salvage/legacy_bots/*
|
|
!tr_bots/_salvage/legacy_bots/MANIFEST.sha256
|
|
!tr_bots/_salvage/tr_wrappers/
|
|
!tr_bots/_salvage/portaudit/
|
|
!tr_bots/_salvage/shim/
|
|
|
|
# Legacy champion bot jars ARE committed: their license reads "not stated in
|
|
# jar" for every bot (see tools/robocode_shim/robots.json), but the repo owner
|
|
# has explicitly waived that concern — it is a PRIVATE repo on their own LAN.
|
|
# The jars are not reproducible from here, and an over-broad *.jar rule already
|
|
# cost us the only copy of DrussGT.jar once.
|
|
!legacy_bots/**/*.jar
|
|
legacy_bots/**/*.jar.*
|
|
|
|
# Raw recorded battle corpora (regenerable via tools/raw_recorder):
|
|
# data/drussgt_raw/ 26 MB, one 20 MB capture
|
|
# data/generalization_raw/ 34 MB, 8 opponent captures
|
|
# These are the INPUT to tools/elm_bench; committing the DERIVED samples
|
|
# (tools/elm_bench/gen/*.ndjson) is enough to rerun every experiment.
|
|
data/drussgt_raw/
|
|
data/generalization_raw/
|
|
|
|
# Research PDFs (60 MB). Regenerable: common_libs/guns/docs/fetch_papers.sh
|
|
# (same call as the BitBrain zip rule above).
|
|
docs/papers/*.pdf
|
|
|
|
# Root-level build output (garage builds go to *_garage/out/, this was not)
|
|
/out/
|
|
|
|
# Extensionless build artifacts
|
|
DevControlBot_garage/DevControlBot/DevControlBot
|
|
DevControlBot_garage/DevControlBot/modules/ELM/elm_tests
|
|
common_libs/guns/waveelm
|
|
common_libs/tests/measure_melee_strong_field
|
|
common_libs/tests/measure_tfil_arrival
|
|
common_libs/tests/measure_tfil_pick_defects
|
|
common_libs/tests/measure_tfil_picker_loss
|
|
tools/elm_bench/bench
|
|
tools/elm_bench/bench_realistic
|
|
tools/elm_bench/bench_ring
|
|
tools/elm_bench/cross_opponent
|
|
|
|
# Generated sample tables. The authoritative copies live in tools/elm_bench/gen/
|
|
# (committed); the top-level ones are the DrussGT extract, byte-identical.
|
|
tools/elm_bench/samples*.ndjson
|
|
tools/elm_bench/ring_*.ndjson
|
|
tools/elm_bench/ring_*.ndjson.merged
|