Case 2: control run without the steering-rate limit (chrono_runner.py --no-limit)
Browse filesAdds the --no-limit option of chrono_runner.py, the 2400 held-out Chrono episodes without the steering-rate limit (results/chrono_B_confirm16_nolimit/), their analysis (confirm_analysis_nolimit.json, posthoc_confirm_nolimit.json), optional input/output paths for posthoc_confirm.py (defaults unchanged), the control numbers in paper_numbers.py (key control_no_limit), and stage 12 in README_case2.md.
Files changed (25)
- code/README.md+1
- code/case2/README_case2.md+7-3
- code/case2/chrono_runner.py+12-6
- code/case2/paper_numbers.py+19-1
- code/case2/posthoc_confirm.py+12-4
- code/case2/results/chrono_B_confirm16_nolimit/episodes.jsonlAdded
- code/case2/results/chrono_B_confirm16_nolimit/traj/nonoise_s2001.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/nonoise_s2002.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/nonoise_s2003.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/nonoise_s2004.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/rel1.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/rel2.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/rel3.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/rel4.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/release_s2001.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/release_s2002.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/release_s2003.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/release_s2004.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/robust_s2001.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/robust_s2002.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/robust_s2003.npzAdded+3
- code/case2/results/chrono_B_confirm16_nolimit/traj/robust_s2004.npzAdded+3
- code/case2/results/confirm_analysis_nolimit.jsonAdded
- code/case2/results/paper_numbers.json+38
- code/case2/results/posthoc_confirm_nolimit.jsonAdded+265
49 unmodified lines50515253545549 unmodified lines| MPC failures from large heading errors | `case1/mpc_failures/d3_range.py` | `case1/results/mpc_failures.json` || Case 2 design exploration (goal set A) | `case2/analyze.py`, `case2/report_explore.py` | `case2/results/exploration_tau_table.json`, `exploration_report.md` || Table VI and the Case 2 held-out results | `case2/analyze_confirm.py`, `case2/posthoc_confirm.py`, `case2/behavior_stats.py` | `case2/results/confirm_analysis.json`, `posthoc_confirm.json`, `behavior_B_confirm16.json`; all numbers in `paper_numbers.json` |The two case READMEs map every number in the text to its output key.49 unmodified lines5051525354555649 unmodified lines| MPC failures from large heading errors | `case1/mpc_failures/d3_range.py` | `case1/results/mpc_failures.json` || Case 2 design exploration (goal set A) | `case2/analyze.py`, `case2/report_explore.py` | `case2/results/exploration_tau_table.json`, `exploration_report.md` || Table VI and the Case 2 held-out results | `case2/analyze_confirm.py`, `case2/posthoc_confirm.py`, `case2/behavior_stats.py` | `case2/results/confirm_analysis.json`, `posthoc_confirm.json`, `behavior_B_confirm16.json`; all numbers in `paper_numbers.json` || Case 2 control without the steering-rate limit | `case2/chrono_runner.py --no-limit`, `case2/analyze_confirm.py`, `case2/posthoc_confirm.py` (stage 12 of `case2/README_case2.md`) | `case2/results/chrono_B_confirm16_nolimit/`, `confirm_analysis_nolimit.json`, `posthoc_confirm_nolimit.json`; numbers in `paper_numbers.json`: `control_no_limit` |The two case READMEs map every number in the text to its output key.
135 unmodified lines13613713813914014114236 unmodified lines1791801811821831846 unmodified lines1911921931941951961973 unmodified lines201202203204205206207135 unmodified lines| 8. Held-out analysis | `python analyze_confirm.py --set B --rom-dir results/rom_B_confirm16 --chrono-dir results/chrono_B_confirm16 --primary confirm --secondary confirm16 --out results/confirm_analysis.json` | stages 6, 7 | `results/confirm_analysis.json` | < 1 min || 9. Steering behavior | `python behavior_stats.py B confirm16` | policies, goal set B (nominal ROM) | `results/behavior_B_confirm16.json` | < 10 s || 10. Post hoc summaries, report | `python posthoc_confirm.py`<br>`python report_confirm.py` | stages 8, 9 | `results/posthoc_confirm.json`, `results/heldout_report.md` | < 20 s || 11. Paper numbers | `python paper_numbers.py` | stages 5, 8-10 | `results/paper_numbers.json` | < 10 s || Optional: ROM parity | `python verify_rom_parity.py <checkout>/2024/PathFollowingSim2real/hmmwv_goal_reach` | released checkpoints, original training script | `results/rom_parity.json` | < 1 min |Notes on re-running:36 unmodified lines| Checkpoints: Chrono success 49/87/97/95 % ID, 69/99/97/99 % OOD | `analyze_confirm.py` | S`.chrono.success_rate.<id, ood>.rel<k>` || Checkpoints: nominal ROM order 4, 3, 2, 1 as Chrono; TR reverses 4 vs 3 and 4 vs 2, leaves 2 vs 3 unresolved | `analyze_confirm.py` | S`.chrono.pairs`, S`.conditions.<nominal, tr_rate>.rom.pairs` (summary: `paper_numbers.json`: `checkpoints`) || 16-policy pool: tau_b 0.70 vs 0.55, difference +0.15 [-0.03, 0.25]; rate range halved 0.13, doubled 0.87 | `analyze_confirm.py` | S`.conditions.<tr_rate, nominal, tr_rate_half, tr_rate_double>.vs_chrono.all` || All 24 policies reach every goal in nominal ROM | `run_rom.py` | `results/rom_A_explore/nominal.npz`, `results/rom_B_confirm16/nominal.npz`: `success` |`results/exploration_report.md` and `results/heldout_report.md` show the same results as readable tables6 unmodified lines| `results/rom_<set>_<pool>/<condition>.npz` | `policies` [P], `goal_ids` [G]; `success`, `time_s` (NaN if no success), `terminal_distance_m`, `min_distance_m` [P, G, K]; `param_<name>` [G, K]: sampled parameters of each trial || `results/rom_<set>_<pool>/<condition>.json` | condition specification, trials per goal, goal set, parameter and noise seeds, policy paths and SHA-256, wall time of the original run || `results/chrono_<set>_<pool>/episodes.jsonl` | one line per episode: `policy`, `goal_id`, goal `x`, `y`, `success`, `time_s` (null if no success), `terminal_distance_m`, `min_distance_m`, `max_speed_mps`, `mean_throttle`, `rows`, `finite`, `wall_s`, `status` || `results/chrono_<set>_<pool>/traj/<policy>.npz` | one float32 array per goal id, 10 Hz rows: time (s), x, y, yaw, speed, policy throttle, rate-limited steering command (the vehicle is braked with zero inputs while t <= 1 s; the last row of a success has NaN commands). No paper number uses these trajectories. |Scoring: a ROM trial succeeds at the first step after which the distance to the goal is below 3 m; its time is(step index + 1) x 0.1 s. A Chrono episode succeeds when the distance is below 3 m at a control step; its time is3 unmodified linesIn a fresh copy of this folder (Python 3.12.14, PyTorch 2.13.0, PyChrono 10.0.0):- The analysis stages 5 and 8-11 reproduce every released analysis output byte for byte from the released records.- A full ROM re-evaluation (all 36 goal-set-A conditions incl. nominal and all 9 goal-set-B conditions, `--tag _rerun`)reproduces every array of the released ROM records exactly.- 48 Chrono episodes (first goal of set A and first two goals of set B, all 16 policies each) re-run with135 unmodified lines13613713813914014114214336 unmodified lines1801811821831841851866 unmodified lines1931941951961971981993 unmodified lines203204205206207208209210211135 unmodified lines| 8. Held-out analysis | `python analyze_confirm.py --set B --rom-dir results/rom_B_confirm16 --chrono-dir results/chrono_B_confirm16 --primary confirm --secondary confirm16 --out results/confirm_analysis.json` | stages 6, 7 | `results/confirm_analysis.json` | < 1 min || 9. Steering behavior | `python behavior_stats.py B confirm16` | policies, goal set B (nominal ROM) | `results/behavior_B_confirm16.json` | < 10 s || 10. Post hoc summaries, report | `python posthoc_confirm.py`<br>`python report_confirm.py` | stages 8, 9 | `results/posthoc_confirm.json`, `results/heldout_report.md` | < 20 s || 11. Paper numbers | `python paper_numbers.py` | stages 5, 8-10, 12 | `results/paper_numbers.json` | < 10 s || 12. Control without the steering-rate limit | `python chrono_runner.py results/chrono_B_jobs.jsonl results/chrono_B_confirm16_nolimit --workers 12 --no-limit`<br>`python analyze_confirm.py --set B --rom-dir results/rom_B_confirm16 --chrono-dir results/chrono_B_confirm16_nolimit --primary confirm --secondary confirm16 --out results/confirm_analysis_nolimit.json --label "held-out, control run without the steering-rate limit"`<br>`python posthoc_confirm.py --chrono-dir results/chrono_B_confirm16_nolimit --analysis results/confirm_analysis_nolimit.json --out results/posthoc_confirm_nolimit.json` | job list of stage 7, stages 6, 9 | `results/chrono_B_confirm16_nolimit/`, `results/confirm_analysis_nolimit.json`, `results/posthoc_confirm_nolimit.json` | 2400 episodes, about 40 min with 12 workers || Optional: ROM parity | `python verify_rom_parity.py <checkout>/2024/PathFollowingSim2real/hmmwv_goal_reach` | released checkpoints, original training script | `results/rom_parity.json` | < 1 min |Notes on re-running:36 unmodified lines| Checkpoints: Chrono success 49/87/97/95 % ID, 69/99/97/99 % OOD | `analyze_confirm.py` | S`.chrono.success_rate.<id, ood>.rel<k>` || Checkpoints: nominal ROM order 4, 3, 2, 1 as Chrono; TR reverses 4 vs 3 and 4 vs 2, leaves 2 vs 3 unresolved | `analyze_confirm.py` | S`.chrono.pairs`, S`.conditions.<nominal, tr_rate>.rom.pairs` (summary: `paper_numbers.json`: `checkpoints`) || 16-policy pool: tau_b 0.70 vs 0.55, difference +0.15 [-0.03, 0.25]; rate range halved 0.13, doubled 0.87 | `analyze_confirm.py` | S`.conditions.<tr_rate, nominal, tr_rate_half, tr_rate_double>.vs_chrono.all` || Control without the rate limit: OOD success 96.7 % (bang-bang) vs 96.0 % (smooth), mean time 7.0 s for both; Spearman 0.20, p = 0.53; Chrono resolves 35 of 66 pairs, TR orders 26 and nominal ROM 25 as Chrono does; tau_b 0.45 vs 0.42, difference +0.03 [-0.21, 0.30] | stage 12, `paper_numbers.py` | `paper_numbers.json`: `control_no_limit` (from `confirm_analysis_nolimit.json`, `posthoc_confirm_nolimit.json`, `chrono_B_confirm16_nolimit/episodes.jsonl`) || All 24 policies reach every goal in nominal ROM | `run_rom.py` | `results/rom_A_explore/nominal.npz`, `results/rom_B_confirm16/nominal.npz`: `success` |`results/exploration_report.md` and `results/heldout_report.md` show the same results as readable tables6 unmodified lines| `results/rom_<set>_<pool>/<condition>.npz` | `policies` [P], `goal_ids` [G]; `success`, `time_s` (NaN if no success), `terminal_distance_m`, `min_distance_m` [P, G, K]; `param_<name>` [G, K]: sampled parameters of each trial || `results/rom_<set>_<pool>/<condition>.json` | condition specification, trials per goal, goal set, parameter and noise seeds, policy paths and SHA-256, wall time of the original run || `results/chrono_<set>_<pool>/episodes.jsonl` | one line per episode: `policy`, `goal_id`, goal `x`, `y`, `success`, `time_s` (null if no success), `terminal_distance_m`, `min_distance_m`, `max_speed_mps`, `mean_throttle`, `rows`, `finite`, `wall_s`, `status` || `results/chrono_<set>_<pool>/traj/<policy>.npz` | one float32 array per goal id, 10 Hz rows: time (s), x, y, yaw, speed, policy throttle, applied steering command (rate-limited, except in `chrono_B_confirm16_nolimit`) (the vehicle is braked with zero inputs while t <= 1 s; the last row of a success has NaN commands). No paper number uses these trajectories. |Scoring: a ROM trial succeeds at the first step after which the distance to the goal is below 3 m; its time is(step index + 1) x 0.1 s. A Chrono episode succeeds when the distance is below 3 m at a control step; its time is3 unmodified linesIn a fresh copy of this folder (Python 3.12.14, PyTorch 2.13.0, PyChrono 10.0.0):- The analysis stages 5 and 8-11 and the analysis commands of stage 12 reproduce every released analysis output bytefor byte from the released records.- The control run of stage 12 (`--no-limit`) gives identical records when repeated on the same machine (96 episodes).- A full ROM re-evaluation (all 36 goal-set-A conditions incl. nominal and all 9 goal-set-B conditions, `--tag _rerun`)reproduces every array of the released ROM records exactly.- 48 Chrono episodes (first goal of set A and first two goals of set B, all 16 policies each) re-run with
5 unmodified lines6789101112133 unmodified lines17181920212212 unmodified lines3536373839404144 unmodified lines8687888990919213 unmodified lines1061071081091101111121131145 unmodified lines12012112212312412511 unmodified lines1371381391401411421435 unmodified linessuccess when the distance to the goal is < 3 m at a control step. Horizon 40 s (as in the ROM tests).Changes: no visualization, no CSV append (in-memory log), PyChrono 10 data-path call, actor = common.Actor.Usage: python chrono_runner.py jobs.jsonl out_dir --workers 10(Resumes: episodes already in out_dir/episodes.jsonl are skipped. Use a new out_dir to re-run.)jobs.jsonl lines: {"policy": name, "policy_path": path, "goal_id": id, "x": gx, "y": gy}Output: out_dir/episodes.jsonl (one summary per episode), out_dir/traj/<policy>.npz (10 Hz trajectories)."""3 unmodified linesimport multiprocessing as mpimport osimport timefrom pathlib import Pathimport numpy as np12 unmodified linesreturn chrono, vehdef run_episode(job, horizon=HORIZON):from common import Actor, relative_obschrono, veh = _setup()if job['policy_path'] not in _ACTORS:44 unmodified linesobs = relative_obs(vx, vy, yaw, v, goal_x, goal_y)throttle, steering = (float(u) for u in actor(obs[None])[0])delta = steering - prev_steeringprev_steering = prev_steering + 0.1 * delta / abs(delta) if abs(delta) > 0.1 else steeringif t > 1.0:driver.SetSteering(prev_steering); driver.SetThrottle(throttle); driver.SetBraking(0.0)else:13 unmodified linesreturn summary, log.astype(np.float32)def _work(job):try:s, log = run_episode(job)return s, logexcept Exception as e: # runtime errors are recorded, never counted as controller failuresimport traceback5 unmodified linesp.add_argument('jobs')p.add_argument('out')p.add_argument('--workers', type=int, default=10)a = p.parse_args()out = Path(a.out)(out / 'traj').mkdir(parents=True, exist_ok=True)11 unmodified linest0 = time.time()os.environ.setdefault('OMP_NUM_THREADS', '1')with mp.get_context('spawn').Pool(a.workers, maxtasksperchild=50) as pool, open(done_path, 'a') as f:for i, (s, log) in enumerate(pool.imap_unordered(_work, todo, chunksize=1)):s.setdefault('status', 'ok')f.write(json.dumps(s) + '\n'); f.flush()if log is not None:5 unmodified lines678910111213143 unmodified lines1819202122232412 unmodified lines3738394041424344 unmodified lines8889909192939495969713 unmodified lines1111121131141151161171181195 unmodified lines12512612712812913013111 unmodified lines1431441451461471481495 unmodified linessuccess when the distance to the goal is < 3 m at a control step. Horizon 40 s (as in the ROM tests).Changes: no visualization, no CSV append (in-memory log), PyChrono 10 data-path call, actor = common.Actor.Usage: python chrono_runner.py jobs.jsonl out_dir --workers 10 [--no-limit](Resumes: episodes already in out_dir/episodes.jsonl are skipped. Use a new out_dir to re-run.)--no-limit: control run; the policy steering command is applied without the 0.1-per-step rate limit.jobs.jsonl lines: {"policy": name, "policy_path": path, "goal_id": id, "x": gx, "y": gy}Output: out_dir/episodes.jsonl (one summary per episode), out_dir/traj/<policy>.npz (10 Hz trajectories)."""3 unmodified linesimport multiprocessing as mpimport osimport timefrom functools import partialfrom pathlib import Pathimport numpy as np12 unmodified linesreturn chrono, vehdef run_episode(job, horizon=HORIZON, no_limit=False):from common import Actor, relative_obschrono, veh = _setup()if job['policy_path'] not in _ACTORS:44 unmodified linesobs = relative_obs(vx, vy, yaw, v, goal_x, goal_y)throttle, steering = (float(u) for u in actor(obs[None])[0])delta = steering - prev_steeringif no_limit:prev_steering = steeringelse:prev_steering = prev_steering + 0.1 * delta / abs(delta) if abs(delta) > 0.1 else steeringif t > 1.0:driver.SetSteering(prev_steering); driver.SetThrottle(throttle); driver.SetBraking(0.0)else:13 unmodified linesreturn summary, log.astype(np.float32)def _work(job, no_limit=False):try:s, log = run_episode(job, no_limit=no_limit)return s, logexcept Exception as e: # runtime errors are recorded, never counted as controller failuresimport traceback5 unmodified linesp.add_argument('jobs')p.add_argument('out')p.add_argument('--workers', type=int, default=10)p.add_argument('--no-limit', action='store_true', help='apply the steering command without the rate limit')a = p.parse_args()out = Path(a.out)(out / 'traj').mkdir(parents=True, exist_ok=True)11 unmodified linest0 = time.time()os.environ.setdefault('OMP_NUM_THREADS', '1')with mp.get_context('spawn').Pool(a.workers, maxtasksperchild=50) as pool, open(done_path, 'a') as f:for i, (s, log) in enumerate(pool.imap_unordered(partial(_work, no_limit=a.no_limit), todo, chunksize=1)):s.setdefault('status', 'ok')f.write(json.dumps(s) + '\n'); f.flush()if log is not None:
123456787 unmodified lines9596979899"""Collect the Case 2 numbers reported in the paper from the analysis outputs (no simulation). Sim2Sim.Reads results/exploration_tau_table.json, results/confirm_analysis.json, results/posthoc_confirm.json,results/behavior_B_confirm16.json and the Chrono records. Writes results/paper_numbers.json and prints a summary.Usage: python paper_numbers.py"""import json87 unmodified linesdelta_tr_minus_nominal=r2(sv[design.PRIMARY_TR]['delta_tau_vs_nominal']),ci95=[r2(x) for x in sv[design.PRIMARY_TR]['delta_tau_ci95']])(RESULTS / 'paper_numbers.json').write_text(json.dumps(out, indent=1) + '\n')print(json.dumps(out, indent=1))12345678987 unmodified lines979899100101102103104105106107108109110111112113114115116117"""Collect the Case 2 numbers reported in the paper from the analysis outputs (no simulation). Sim2Sim.Reads results/exploration_tau_table.json, results/confirm_analysis.json, results/posthoc_confirm.json,results/behavior_B_confirm16.json and the Chrono records, and for the control run without the steering-rate limitresults/confirm_analysis_nolimit.json, results/posthoc_confirm_nolimit.json and results/chrono_B_confirm16_nolimit/.Writes results/paper_numbers.json and prints a summary.Usage: python paper_numbers.py"""import json87 unmodified linesdelta_tr_minus_nominal=r2(sv[design.PRIMARY_TR]['delta_tau_vs_nominal']),ci95=[r2(x) for x in sv[design.PRIMARY_TR]['delta_tau_ci95']])# Control run: the held-out Chrono episodes without the steering-rate limit (chrono_runner.py --no-limit)cn = R('confirm_analysis_nolimit.json')cp, cph = cn['pools']['primary'], R('posthoc_confirm_nolimit.json')['pools']['primary']grange = {g['goal_id']: g['goal_range'] for g in R('rom_B_confirm16/goals.json')}ep = [json.loads(l) for l in open(RESULTS / 'chrono_B_confirm16_nolimit/episodes.jsonl')]ood = lambda pols: [e for e in ep if e['policy'] in pols and grange[e['goal_id']] == 'ood']hit = lambda pols: [e['time_s'] for e in ood(pols) if e['success']]out['control_no_limit'] = dict(ood_success_pct={k: round(100 * len(hit(v)) / len(ood(v)), 1) for k, v in (('bang_bang', bang), ('smooth', smooth))},ood_mean_time_of_successes_s={k: round(sum(hit(v)) / len(hit(v)), 1) for k, v in (('bang_bang', bang), ('smooth', smooth))},spearman_chatter_vs_chrono_ood_success=dict((k, round(v, 3)) for k, v in cph['chatter_vs_chrono_success']['ood'].items()),chrono_resolved_pairs=f"{cp['chrono']['resolved_pairs']}/{len(cp['chrono']['pairs'])}",pairs_vs_chrono={n: cph['pair_resolution_vs_chrono'][n] for n in ('nominal', design.PRIMARY_TR)},tau_b={n: r2(cp['conditions'][n]['vs_chrono']['all']['kendall_tau_b']) for n in ('nominal', design.PRIMARY_TR)},delta_tr_minus_nominal=r2(cn['primary_test']['delta_tau']), ci95=[r2(x) for x in cn['primary_test']['ci95']])(RESULTS / 'paper_numbers.json').write_text(json.dumps(out, indent=1) + '\n')print(json.dumps(out, indent=1))
4 unmodified lines56789101112134 unmodified lines181920212223242526272833 unmodified lines626364656667684 unmodified lines(win-rate 95 % range excludes 0.5) split into: resolved by the condition in the same direction, resolved in theopposite direction, unresolved by the condition.3. Steering chatter in nominal ROM versus Chrono success (Spearman across policies).Writes results/posthoc_confirm.json."""import jsonimport numpy as npfrom scipy.stats import spearmanr4 unmodified linesfrom common import RESULTSfrom run_rom import POOLSrom_dir, chrono_dir = RESULTS / 'rom_B_confirm16', RESULTS / 'chrono_B_confirm16'goals = json.loads((rom_dir / 'goals.json').read_text())gids = [g['goal_id'] for g in goals]gr = np.array([g['goal_range'] for g in goals])conf = json.loads((RESULTS / 'confirm_analysis.json').read_text())beh = json.loads((RESULTS / 'behavior_B_confirm16.json').read_text())boot = rs.boot_indices(gr, B_REPS, B_SEED)rom = {n: load_rom(rom_dir, n) for n in design.CONDITIONS}33 unmodified linesrng_: dict(zip(['spearman', 'p_value'], [float(x) for x in spearmanr(chat, srate[:, gr == rng_].mean(1) if rng_ != 'all' else srate.mean(1))]))for rng_ in ['id', 'ood', 'all']}out['pools'][pname] = o(RESULTS / 'posthoc_confirm.json').write_text(json.dumps(out, indent=1) + '\n')for pname, o in out['pools'].items():print(f'== {pname}')for n, v in o['delta_tau_primary_tr_minus'].items():4 unmodified lines56789101112131415164 unmodified lines2122232425262728293031323334353633 unmodified lines707172737475764 unmodified lines(win-rate 95 % range excludes 0.5) split into: resolved by the condition in the same direction, resolved in theopposite direction, unresolved by the condition.3. Steering chatter in nominal ROM versus Chrono success (Spearman across policies).Writes results/posthoc_confirm.json. For other Chrono records (for example the control run without the steering-ratelimit), give --chrono-dir, the analyze_confirm.py output of the same records (--analysis) and --out."""import argparseimport jsonfrom pathlib import Pathimport numpy as npfrom scipy.stats import spearmanr4 unmodified linesfrom common import RESULTSfrom run_rom import POOLSap = argparse.ArgumentParser()ap.add_argument('--chrono-dir', default=str(RESULTS / 'chrono_B_confirm16'))ap.add_argument('--analysis', default=str(RESULTS / 'confirm_analysis.json'), help='analyze_confirm.py output for --chrono-dir')ap.add_argument('--out', default=str(RESULTS / 'posthoc_confirm.json'))a = ap.parse_args()rom_dir, chrono_dir = RESULTS / 'rom_B_confirm16', Path(a.chrono_dir)goals = json.loads((rom_dir / 'goals.json').read_text())gids = [g['goal_id'] for g in goals]gr = np.array([g['goal_range'] for g in goals])conf = json.loads(Path(a.analysis).read_text())beh = json.loads((RESULTS / 'behavior_B_confirm16.json').read_text())boot = rs.boot_indices(gr, B_REPS, B_SEED)rom = {n: load_rom(rom_dir, n) for n in design.CONDITIONS}33 unmodified linesrng_: dict(zip(['spearman', 'p_value'], [float(x) for x in spearmanr(chat, srate[:, gr == rng_].mean(1) if rng_ != 'all' else srate.mean(1))]))for rng_ in ['id', 'ood', 'all']}out['pools'][pname] = oPath(a.out).write_text(json.dumps(out, indent=1) + '\n')for pname, o in out['pools'].items():print(f'== {pname}')for n, v in o['delta_tau_primary_tr_minus'].items():
123version https://git-lfs.github.com/spec/v1oid sha256:a855fb8a5ff0a2fc38194f227350009edfbc9557c229a5df7a6e81c3ed32aa66size 394165123version https://git-lfs.github.com/spec/v1oid sha256:8bfdd6fd5087133859260c405522c4aabeb6c29779ee22e764aba75baccea26esize 384254123version https://git-lfs.github.com/spec/v1oid sha256:02965b97e11c928d629ab0081328bf56e8c15bcad71107e6ebfaac95542b0b51size 419301123version https://git-lfs.github.com/spec/v1oid sha256:60a2d4656425363b84d7b177a44bb507f811c2ecbb2bc901b2a07d9a09e6342fsize 386721123version https://git-lfs.github.com/spec/v1oid sha256:0d439c1f0afbf2ba5951001ae2f3f433e2ac3cabee539f72fd011c4ec22195aasize 941512123version https://git-lfs.github.com/spec/v1oid sha256:7df81445939507e2e96818b13c82b07a82ab54622271f1ac58ab407464007c55size 646762123version https://git-lfs.github.com/spec/v1oid sha256:42c7f2249cfca9a1a7c66c3ecff8c28279a510f2335b60b8ed557c7404061e93size 526650123version https://git-lfs.github.com/spec/v1oid sha256:1dee309a168f2080ee9d589b20303f1e0bcc6909d70331ccc5c002d82b294cc9size 487418123version https://git-lfs.github.com/spec/v1oid sha256:bb89e0838560bf1e2e99b73227ed24c35cf90d4fabb9aca7ba87260d912e3078size 381682123version https://git-lfs.github.com/spec/v1oid sha256:3a94aa3f8ac0feec62d15560d80faf2eb299f9f3484021b77324b10db94d1cd1size 393902123version https://git-lfs.github.com/spec/v1oid sha256:5322f3cca2f0aedf626614dca862632b81f7e6dd7d39c8b745fc6e01f7dc4278size 396065123version https://git-lfs.github.com/spec/v1oid sha256:9598289601b4e8c902edf43cd6643c020337c26313966635598d44ee12b58e3csize 397947123version https://git-lfs.github.com/spec/v1oid sha256:ee6a7b936aea9a251f52af5344971be18fa7b9c81029f0b09ba351632965496esize 384745123version https://git-lfs.github.com/spec/v1oid sha256:65335847b411238bf2a8f0f256ea009608cc884e56d6b68ebb954071ca9ed283size 384811123version https://git-lfs.github.com/spec/v1oid sha256:19586abf91385d40b52fe3721309d8a89a67579ad42cfff08b0dc61c27f8c29dsize 388619123version https://git-lfs.github.com/spec/v1oid sha256:c7e2bd1f32d9b71c2d5ff0cc00013bed519ba4cef0f477bec5ad1de2346a74a2size 401055275 unmodified lines276277278279280275 unmodified lines-0.03,0.25]}}275 unmodified lines276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318275 unmodified lines-0.03,0.25]},"control_no_limit": {"ood_success_pct": {"bang_bang": 96.7,"smooth": 96.0},"ood_mean_time_of_successes_s": {"bang_bang": 7.0,"smooth": 7.0},"spearman_chatter_vs_chrono_ood_success": {"spearman": 0.202,"p_value": 0.528},"chrono_resolved_pairs": "35/66","pairs_vs_chrono": {"nominal": {"chrono_resolved": 35,"same_direction": 25,"opposite_direction": 7,"unresolved": 3},"tr_rate": {"chrono_resolved": 35,"same_direction": 26,"opposite_direction": 6,"unresolved": 3}},"tau_b": {"nominal": 0.42,"tr_rate": 0.45},"delta_tr_minus_nominal": 0.03,"ci95": [-0.21,0.3]}}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265{ "label": "post hoc (not part of the fixed primary test), derived from the goal-set-B held-out outputs, Sim2Sim", "pools": { "primary": { "delta_tau_primary_tr_minus": { "nominal": { "value": 0.030303030303030276, "ci95": [ -0.21212121212121215, 0.30303030303030304 ] }, "paper_tr": { "value": 0.030303030303030276, "ci95": [ -0.24242424242424238, 0.33333333333333337 ] }, "tr_rate_half": { "value": 0.12121212121212122, "ci95": [ -0.03030303030303033, 0.12121212121212122 ] }, "tr_rate_double": { "value": -0.03030303030303033, "ci95": [ -0.18181818181818182, 0.03030303030303033 ] }, "tr_rate_uniform": { "value": -0.03030303030303033, "ci95": [ -0.1515151515151515, 0.030535240827622934 ] }, "tr_delay": { "value": 0.09090909090909088, "ci95": [ -0.06107048165524592, 0.09160572248286891 ] }, "det_rate_0.1": { "value": 0.12121212121212122, "ci95": [ -0.030303030303030304, 0.18181818181818182 ] }, "det_calibrated": { "value": -0.27272727272727276, "ci95": [ -0.36363636363636365, -0.06060606060606066 ] } }, "pair_resolution_vs_chrono": { "nominal": { "chrono_resolved": 35, "same_direction": 25, "opposite_direction": 7, "unresolved": 3 }, "tr_rate": { "chrono_resolved": 35, "same_direction": 26, "opposite_direction": 6, "unresolved": 3 }, "paper_tr": { "chrono_resolved": 35, "same_direction": 25, "opposite_direction": 7, "unresolved": 3 }, "tr_rate_half": { "chrono_resolved": 35, "same_direction": 26, "opposite_direction": 6, "unresolved": 3 }, "tr_rate_double": { "chrono_resolved": 35, "same_direction": 27, "opposite_direction": 4, "unresolved": 4 }, "tr_rate_uniform": { "chrono_resolved": 35, "same_direction": 29, "opposite_direction": 5, "unresolved": 1 }, "tr_delay": { "chrono_resolved": 35, "same_direction": 28, "opposite_direction": 6, "unresolved": 1 }, "det_rate_0.1": { "chrono_resolved": 35, "same_direction": 24, "opposite_direction": 6, "unresolved": 5 }, "det_calibrated": { "chrono_resolved": 35, "same_direction": 33, "opposite_direction": 0, "unresolved": 2 } }, "chatter_vs_chrono_success": { "id": { "spearman": 0.0999794302167936, "p_value": 0.7572067357890887 }, "ood": { "spearman": 0.2023085964597043, "p_value": 0.52831926750806 }, "all": { "spearman": 0.12064224442506447, "p_value": 0.708793553668505 } } }, "secondary": { "delta_tau_primary_tr_minus": { "nominal": { "value": -0.18333333333333324, "ci95": [ -0.36666666666666664, -0.033333333333333326 ] }, "paper_tr": { "value": -0.16666666666666663, "ci95": [ -0.3666666666666667, -0.033333333333333326 ] }, "tr_rate_half": { "value": 0.5666666666666668, "ci95": [ 0.3666666666666667, 0.5833333333333334 ] }, "tr_rate_double": { "value": -0.19999999999999996, "ci95": [ -0.3666666666666667, -0.1499999999999999 ] }, "tr_rate_uniform": { "value": -0.11666666666666659, "ci95": [ -0.30000000000000004, -0.09999999999999998 ] }, "tr_delay": { "value": 0.21666666666666673, "ci95": [ -0.04999999999999999, 0.2833333333333333 ] }, "det_rate_0.1": { "value": 0.5833333333333334, "ci95": [ 0.3833333333333333, 0.6166666666666667 ] }, "det_calibrated": { "value": -0.29999999999999993, "ci95": [ -0.48333333333333334, -0.2008385781013735 ] } }, "pair_resolution_vs_chrono": { "nominal": { "chrono_resolved": 89, "same_direction": 79, "opposite_direction": 7, "unresolved": 3 }, "tr_rate": { "chrono_resolved": 89, "same_direction": 60, "opposite_direction": 13, "unresolved": 16 }, "paper_tr": { "chrono_resolved": 89, "same_direction": 79, "opposite_direction": 7, "unresolved": 3 }, "tr_rate_half": { "chrono_resolved": 89, "same_direction": 36, "opposite_direction": 46, "unresolved": 7 }, "tr_rate_double": { "chrono_resolved": 89, "same_direction": 81, "opposite_direction": 4, "unresolved": 4 }, "tr_rate_uniform": { "chrono_resolved": 89, "same_direction": 82, "opposite_direction": 5, "unresolved": 2 }, "tr_delay": { "chrono_resolved": 89, "same_direction": 58, "opposite_direction": 10, "unresolved": 21 }, "det_rate_0.1": { "chrono_resolved": 89, "same_direction": 32, "opposite_direction": 46, "unresolved": 11 }, "det_calibrated": { "chrono_resolved": 89, "same_direction": 87, "opposite_direction": 0, "unresolved": 2 } }, "chatter_vs_chrono_success": { "id": { "spearman": -0.1821413560377275, "p_value": 0.4995815242047144 }, "ood": { "spearman": -0.0901290702255376, "p_value": 0.7399281964460014 }, "all": { "spearman": -0.17583832815134143, "p_value": 0.5147852561555356 } } } }}code/README.md+1
code/case2/README_case2.md+7-3
code/case2/chrono_runner.py+12-6
code/case2/paper_numbers.py+19-1
code/case2/posthoc_confirm.py+12-4
code/case2/results/chrono_B_confirm16_nolimit/episodes.jsonlAdded
code/case2/results/chrono_B_confirm16_nolimit/traj/nonoise_s2001.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/nonoise_s2002.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/nonoise_s2003.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/nonoise_s2004.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/rel1.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/rel2.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/rel3.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/rel4.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/release_s2001.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/release_s2002.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/release_s2003.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/release_s2004.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/robust_s2001.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/robust_s2002.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/robust_s2003.npzAdded+3
code/case2/results/chrono_B_confirm16_nolimit/traj/robust_s2004.npzAdded+3
code/case2/results/confirm_analysis_nolimit.jsonAdded
code/case2/results/paper_numbers.json+38
code/case2/results/posthoc_confirm_nolimit.jsonAdded+265