planner_study.planner_verify¶
planner_verify
¶
External path-optimality verification for the distilled L2 planners. Loads a planner .eqx, builds field() on maps from generators OUTSIDE our env generator, greedy value-ascent, compares to BFS optimum. Metrics = GPPN/VIN standard (%Success, %Optimal).
rollout
¶
rollout(V, wall, start, goal, cap)
greedy value-ascent; returns (reached, steps).
Source code in experiments/planner_study/planner_verify.py
34 35 36 37 38 39 40 41 42 43 44 45 46 | |
eval_map
¶
eval_map(Vfn, wall, goal, dstar)
Vfn: (wall,goal)->V. returns dict of counts + per-distance-bin success/optimal + action-acc.
Source code in experiments/planner_study/planner_verify.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
maze_backtracker
¶
maze_backtracker(H, W, seed)
recursive-backtracker perfect maze; walls=True, corridors width 1.
Source code in experiments/planner_study/planner_verify.py
74 75 76 77 78 79 80 81 82 83 84 85 86 | |
rollout_true
¶
rollout_true(V, truewall, start, goal, cap)
greedy value-ascent on V but MOVEMENT restricted to TRUE-free cells (plan on belief, execute on truth). Stuck at an unknown wall / loop -> fail.
Source code in experiments/planner_study/planner_verify.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 | |