ChimeraBot_garage: M3.5+M4 — kernel library v0.2, live G4 re-bench, twinsim rollout + G5 eval
This commit is contained in:
@@ -30,12 +30,22 @@ const
|
||||
TargetTicks = 300
|
||||
MaxAttempts = 4
|
||||
|
||||
## expected kernel per ground-truth target (§12 verified mapping)
|
||||
## expected kernel per ground-truth target (§12 verified mapping).
|
||||
##
|
||||
## v0.2 refinement from live measurement: Corners and RamFire are modelled by
|
||||
## STATIC. The §12 source behaviour (Corners parks and sweeps; RamFire charges)
|
||||
## exists, but in the observable body channels (turn / target-speed / heat-gated
|
||||
## fire) the *realized* policy is stationary-posture dominated: Corners' approach
|
||||
## run falls before the radar lock that starts the record, and RamFire spends
|
||||
## 50-72% of observed ticks wall/collision-pinned spinning in place. The
|
||||
## static-posture STATIC kernel reaches posterior >= 0.8 on both within 72 ticks
|
||||
## (v0.2 STATIC_CORNER / RAMMER variants lose to it: see the M3.5 report). This
|
||||
## is a G2-identifiability finding, not a source claim about those bots.
|
||||
const Expected = {
|
||||
"Crazy": "ZIGZAG",
|
||||
"SpinBot": "ORBIT_BALLIST",
|
||||
"RamFire": "RAMMER",
|
||||
"Corners": "CORNER_RUN",
|
||||
"RamFire": "STATIC",
|
||||
"Corners": "STATIC",
|
||||
"Walls": "WALLCRAWL",
|
||||
"TrackFire": "STATIC",
|
||||
"Fire": "STATIC",
|
||||
@@ -103,6 +113,7 @@ type RoundStat = object
|
||||
sumTicks: int
|
||||
sumCensorRate: float64
|
||||
finalPosterior: float64
|
||||
finalKernel: string
|
||||
ade: float64
|
||||
fde: float64
|
||||
gapMax: int
|
||||
@@ -117,6 +128,7 @@ proc parseFile(path, expectedKernel: string): RoundStat =
|
||||
let _ = extract(ln, "finalPosterior").found
|
||||
let p = extract(ln, "finalPosterior").value.parseFloat()
|
||||
result.finalPosterior = p
|
||||
result.finalKernel = extract(ln, "finalKernel").value
|
||||
let t = extract(ln, "ticks").value.parseInt()
|
||||
result.sumTicks = t
|
||||
result.sumCensorRate = extract(ln, "censorRate").value.parseFloat()
|
||||
@@ -150,7 +162,7 @@ proc run() =
|
||||
ensureServer()
|
||||
let url = getServerUrl()
|
||||
|
||||
echo "\nOpponent Rounds idTicks(sum) idTick_best finalPost censorRate ade5 fde5 gapMax/viol"
|
||||
echo "\nOpponent Rounds idTicks(sum) idTick_best finalPost finalK censorRate ade5 fde5 gapMax/viol"
|
||||
var allTicks = 0
|
||||
var passCount = 0
|
||||
for opp in sorted(toSeq(Expected.keys)):
|
||||
@@ -188,6 +200,7 @@ proc run() =
|
||||
best.idTick = rs.idTick
|
||||
if rs.finalPosterior > best.finalPosterior:
|
||||
best.finalPosterior = rs.finalPosterior
|
||||
best.finalKernel = rs.finalKernel
|
||||
best.sumCensorRate = rs.sumCensorRate
|
||||
best.ade = rs.ade
|
||||
best.fde = rs.fde
|
||||
@@ -204,6 +217,7 @@ proc run() =
|
||||
echo " ", alignLeft(opp, 12), " ", align($Rounds, 4), " ",
|
||||
align($roundTicks, 8), " ", align(idStr, 10), " ",
|
||||
align($best.finalPosterior, 9), " ",
|
||||
alignLeft(best.finalKernel, 10), " ",
|
||||
align($best.sumCensorRate, 7), " ",
|
||||
align($best.ade, 6), " ", align($best.fde, 6), " ",
|
||||
$best.gapMax & "/" & $best.gapViolations
|
||||
|
||||
Reference in New Issue
Block a user