text stringlengths 0 1.87k |
|---|
E [0.076508, 0.041658, 0.08876 ], |
E [0.042119, 0.051696, 0.101616],... |
E y: array([[[0.08824 , 0.132384, 0.04039 ], |
E [0.076508, 0.041658, 0.08876 ], |
E [0.042119, 0.051696, 0.101616],... |
/usr/local/lib/python3.12/contextlib.py:81: AssertionError |
________________ test_conditional_peaks_and_predictive_summary _________________ |
def test_conditional_peaks_and_predictive_summary() -> None: |
reference = independent_conditional_information_reference() |
submitted = submitted_conditional_information() |
report = load_strict_json(ROOT / "predictive_information_report.json") |
peak_indices = np.argmax(reference, axis=0) |
expected_peak_lags = CMI_LAGS_SECONDS[peak_indices] |
expected_peak_values = np.take_along_axis( |
reference, |
peak_indices[np.newaxis, :, :], |
axis=0, |
)[0] |
np.testing.assert_array_equal( |
integral_seconds( |
submitted["peak_lag_seconds"], |
"conditional peak_lag_seconds", |
), |
expected_peak_lags, |
) |
> np.testing.assert_allclose( |
submitted["peak_cmi_nats"], |
expected_peak_values, |
rtol=CMI_RTOL, |
atol=CMI_ATOL, |
) |
test_outputs.py:1010: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
args = (<function assert_allclose.<locals>.compare at 0x7dd20b4b60c0>, array([[0.13878917, 0.25345041, 0.10233613], |
[0...1, 0.2113681 , 0.25919535], |
[0.34851255, 0.29603205, 0.26263958], |
[0.16440157, 0.17772146, 0.18180329]])) |
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=2e-10, atol=2e-10', 'verbose': True} |
@wraps(func) |
def inner(*args, **kwds): |
with self._recreate_cm(): |
> return func(*args, **kwds) |
^^^^^^^^^^^^^^^^^^^ |
E AssertionError: |
E Not equal to tolerance rtol=2e-10, atol=2e-10 |
E |
E Mismatched elements: 35 / 318 (11%) |
E Max absolute difference: 0.00186373 |
E Max relative difference: 0.09462778 |
E x: array([[0.138789, 0.25345 , 0.102336], |
E [0.132651, 0.108712, 0.0996 ], |
E [0.102521, 0.071527, 0.133099],... |
E y: array([[0.138789, 0.25345 , 0.102336], |
E [0.132651, 0.108712, 0.0996 ], |
E [0.102521, 0.071527, 0.133099],... |
/usr/local/lib/python3.12/contextlib.py:81: AssertionError |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED ../root::test_prediction_alignment_and_persistence |
PASSED ../root::test_forecast_matches_independent_svd_ridge |
PASSED ../root::test_serialized_model_is_correct_and_reproduces_predictions |
PASSED ../root::test_forecast_report_metrics_are_recomputed_correctly |
PASSED ../root::test_information_tensor_matches_independent_knn_recomputation |
PASSED ../root::test_hidden_adversarial_lag_and_overlap_probes |
FAILED ../root::test_artifact_schema_and_source_protocol - assert False |
FAILED ../root::test_peak_arrays_rankings_and_memory_metrics - KeyError: 'for... |
FAILED ../root::test_conditional_information_matches_independent_frenzel_pompe_recomputation |
FAILED ../root::test_conditional_peaks_and_predictive_summary - AssertionError: |
=================== 4 failed, 6 passed in 245.46s (0:04:05) ==================== |
ANTI_TAMPER: verifier integrity preflight passed |
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.2, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /root |
configfile: ../dev/null |
plugins: json-ctrf-0.3.5 |
collecting ... collected 10 items |
../root::test_artifact_schema_and_source_protocol FAILED [ 10%] |
../root::test_prediction_alignment_and_persistence FAILED [ 20%] |
../root::test_forecast_matches_independent_svd_ridge FAILED [ 30%] |
../root::test_serialized_model_is_correct_and_reproduces_predictions FAILED [ 40%] |
../root::test_forecast_report_metrics_are_recomputed_correctly FAILED [ 50%] |
../root::test_information_tensor_matches_independent_knn_recomputation FAILED [ 60%] |
../root::test_peak_arrays_rankings_and_memory_metrics FAILED [ 70%] |
../root::test_conditional_information_matches_independent_frenzel_pompe_recomputation FAILED [ 80%] |
../root::test_conditional_peaks_and_predictive_summary FAILED [ 90%] |
../root::test_hidden_adversarial_lag_and_overlap_probes FAILED [100%] |
=================================== FAILURES =================================== |
___________________ test_artifact_schema_and_source_protocol ___________________ |
def test_artifact_schema_and_source_protocol() -> None: |
forecast_reference = independent_forecast_reference() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.