text stringclasses 371
values |
|---|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
actual = 1.120461305439316, expected = 1.12534633877371 |
def assert_close(actual: float, expected: float, *, atol: float = 3e-3, rtol: float = 3e-3, message: str = "") -> None: |
> assert math.isclose(actual, expected, abs_tol=atol, rel_tol=rtol), message or f"{actual} != {expected}" |
E AssertionError: hidden-3f0d8eb546e63c3c-adaptive-a shot 3 theta_mean |
E assert False |
E + where False = <built-in function isclose>(1.120461305439316, 1.12534633877371, abs_tol=0.004, rel_tol=0.004) |
E + where <built-in function isclose> = math.isclose |
/verifier/test_outputs.py:132: AssertionError |
---------------------------- Captured stdout setup ----------------------------- |
Computing posterior trajectories... |
Writing posterior_trajectories.csv... |
Writing checkpoint_posteriors.npz... |
Computing precision gain curves... |
Processing design case: prior-3f0d8eb546e63c3c |
Processing design case: zero-prefix-two-3f0d8eb546e63c3c |
Writing precision_gain.csv... |
Computing strategy statistics... |
Computing standard resonance MLE baseline... |
Computing headline comparison... |
Writing summary.json... |
Computing analysis diagnostics... |
Computing phi bound sensitivity... |
Writing analysis_diagnostics.json... |
Generating posterior_diagnostics.png... |
Writing report.md... |
Analysis complete! |
Computing posterior trajectories... |
Writing posterior_trajectories.csv... |
Writing checkpoint_posteriors.npz... |
Computing precision gain curves... |
Processing design case: prior-c25860c282e7a57f |
Processing design case: zero-prefix-two-c25860c282e7a57f |
Writing precision_gain.csv... |
Computing strategy statistics... |
Computing standard resonance MLE baseline... |
Computing headline comparison... |
Writing summary.json... |
Computing analysis diagnostics... |
Computing phi bound sensitivity... |
Writing analysis_diagnostics.json... |
Generating posterior_diagnostics.png... |
Writing report.md... |
Analysis complete! |
________________ test_adversarial_regressions_reject_shortcuts _________________ |
hidden_outputs = [({'checkpoint_cases': [{'case_id': 'zero-prefix-3f0d8eb546e63c3c', 'run_id': 'hidden-3f0d8eb546e63c3c-adaptive-a', 's...pytest-0/hidden-cases0/hidden_input_1.json'), PosixPath('/tmp/pytest-of-root/pytest-0/hidden-cases0/hidden_output_1'))] |
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_adversarial_regressions_r0') |
def test_adversarial_regressions_reject_shortcuts( |
hidden_outputs: list[tuple[dict[str, Any], Path, Path]], |
tmp_path: Path, |
) -> None: |
payload, _, valid_output = hidden_outputs[0] |
dummy_trajectory = tmp_path / "dummy-trajectory" |
shutil.copytree(valid_output, dummy_trajectory) |
rows = load_trajectory(dummy_trajectory) |
for row in rows[4:]: |
row["theta_mean"] = "1.0" |
row["theta_sd"] = "1.0" |
row["phi_mean"] = "10.0" |
row["phi_sd"] = "1.0" |
with (dummy_trajectory / "posterior_trajectories.csv").open("w", newline="", encoding="utf-8") as handle: |
writer = csv.DictWriter(handle, fieldnames=TRAJECTORY_COLUMNS) |
writer.writeheader() |
writer.writerows(rows) |
with pytest.raises(AssertionError): |
validate_trajectory(payload, dummy_trajectory) |
fake_design = tmp_path / "fake-design" |
shutil.copytree(valid_output, fake_design) |
design_rows = load_design(fake_design) |
for row in design_rows: |
row["detuning_mhz"] = "999" |
row["zeta"] = "999" |
row["expected_variance_reduction"] = "999" |
with (fake_design / "precision_gain.csv").open("w", newline="", encoding="utf-8") as handle: |
writer = csv.DictWriter(handle, fieldnames=DESIGN_COLUMNS) |
writer.writeheader() |
writer.writerows(design_rows) |
valid_rows = [numeric_trajectory_row(row) for row in load_trajectory(fake_design)] |
> normalization_error = validate_checkpoints(payload, fake_design, valid_rows) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
/verifier/test_outputs.py:715: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:240: in validate_checkpoints |
assert_close(normalization, 1.0, atol=2e-6, rtol=0.0) |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
actual = 0.9965035652947729, expected = 1.0 |
def assert_close(actual: float, expected: float, *, atol: float = 3e-3, rtol: float = 3e-3, message: str = "") -> None: |
> assert math.isclose(actual, expected, abs_tol=atol, rel_tol=rtol), message or f"{actual} != {expected}" |
E AssertionError: 0.9965035652947729 != 1.0 |
E assert False |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.