text stringclasses 371
values |
|---|
/verifier/test_outputs.py:548: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:97: in load_trajectory |
return load_csv(solution / "posterior_trajectories.csv", TRAJECTORY_COLUMNS) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
path = PosixPath('/root/solution/posterior_trajectories.csv') |
columns = ['run_id', 'strategy', 'shot', 'frequency_mhz', 'zeta', 'theta_mean', ...] |
def load_csv(path: Path, columns: list[str]) -> list[dict[str, str]]: |
> assert path.is_file(), f"missing {path.name}" |
E AssertionError: missing posterior_trajectories.csv |
E assert False |
E + where False = is_file() |
E + where is_file = PosixPath('/root/solution/posterior_trajectories.csv').is_file |
/verifier/test_outputs.py:89: AssertionError |
_____________ test_report_and_figure_are_quantitative_and_nonblank _____________ |
def test_report_and_figure_are_quantitative_and_nonblank() -> None: |
payload = load_payload() |
> summary = load_json(SOLUTION / "summary.json") |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
/verifier/test_outputs.py:556: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
path = PosixPath('/root/solution/summary.json') |
def load_json(path: Path) -> dict[str, Any]: |
> assert path.is_file(), f"missing {path.name}" |
E AssertionError: missing summary.json |
E assert False |
E + where False = is_file() |
E + where is_file = PosixPath('/root/solution/summary.json').is_file |
/verifier/test_outputs.py:70: AssertionError |
_______ test_reusable_script_solves_multiple_unpredictable_hidden_inputs _______ |
hidden_outputs = [({'checkpoint_cases': [{'case_id': 'zero-prefix-95d32392e97d6d1c', 'run_id': 'hidden-95d32392e97d6d1c-adaptive-a', 's...pytest-3/hidden-cases0/hidden_input_1.json'), PosixPath('/tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_1'))] |
def test_reusable_script_solves_multiple_unpredictable_hidden_inputs( |
hidden_outputs: list[tuple[dict[str, Any], Path, Path]], |
) -> None: |
for payload, _, output in hidden_outputs: |
> validate_bundle(payload, output) |
/verifier/test_outputs.py:679: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:509: in validate_bundle |
summary = validate_summary_and_design(payload, solution, rows, normalization_error) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
/verifier/test_outputs.py:278: in validate_summary_and_design |
assert_close(actual[f"shot_{shot}"][key], from_rows[strategy][f"shot_{shot}"][key], atol=1e-10, rtol=1e-10) |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
actual = 0.10931989857220785, expected = 0.011950840223837814 |
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.10931989857220785 != 0.011950840223837814 |
E assert False |
E + where False = <built-in function isclose>(0.10931989857220785, 0.011950840223837814, abs_tol=1e-10, rel_tol=1e-10) |
E + where <built-in function isclose> = math.isclose |
/verifier/test_outputs.py:132: AssertionError |
---------------------------- Captured stdout setup ----------------------------- |
Processing 4 runs... |
Generated 48 trajectory points |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_0/posterior_trajectories.csv |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_0/checkpoint_posteriors.npz |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_0/precision_gain.csv |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_0/summary.json |
Computing diagnostics... |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_0/analysis_diagnostics.json |
Creating diagnostic plots... |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_0/posterior_diagnostics.png |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_0/report.md |
Analysis complete! |
Processing 4 runs... |
Generated 64 trajectory points |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_1/posterior_trajectories.csv |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_1/checkpoint_posteriors.npz |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_1/precision_gain.csv |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_1/summary.json |
Computing diagnostics... |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_1/analysis_diagnostics.json |
Creating diagnostic plots... |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_1/posterior_diagnostics.png |
Wrote /tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_1/report.md |
Analysis complete! |
________________ test_adversarial_regressions_reject_shortcuts _________________ |
hidden_outputs = [({'checkpoint_cases': [{'case_id': 'zero-prefix-95d32392e97d6d1c', 'run_id': 'hidden-95d32392e97d6d1c-adaptive-a', 's...pytest-3/hidden-cases0/hidden_input_1.json'), PosixPath('/tmp/pytest-of-root/pytest-3/hidden-cases0/hidden_output_1'))] |
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-3/test_adversarial_regressions_r0') |
def test_adversarial_regressions_reject_shortcuts( |
hidden_outputs: list[tuple[dict[str, Any], Path, Path]], |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.