text
stringlengths
0
1.87k
@functools.lru_cache(maxsize=1)
def submitted_information() -> dict[str, np.ndarray]:
path = ROOT / "lagged_information.npz"
> assert path.is_file(), "missing /root/lagged_information.npz"
E AssertionError: missing /root/lagged_information.npz
E assert False
E + where False = is_file()
E + where is_file = PosixPath('/root/lagged_information.npz').is_file
test_outputs.py:558: AssertionError
=========================== short test summary info ============================
FAILED ../root::test_artifact_schema_and_source_protocol - AssertionError: mi...
FAILED ../root::test_prediction_alignment_and_persistence - AssertionError: m...
FAILED ../root::test_forecast_matches_independent_svd_ridge - AssertionError:...
FAILED ../root::test_serialized_model_is_correct_and_reproduces_predictions
FAILED ../root::test_forecast_report_metrics_are_recomputed_correctly - FileN...
FAILED ../root::test_information_tensor_matches_independent_knn_recomputation
FAILED ../root::test_peak_arrays_rankings_and_memory_metrics - AssertionError...
FAILED ../root::test_conditional_information_matches_independent_frenzel_pompe_recomputation
FAILED ../root::test_conditional_peaks_and_predictive_summary - AssertionErro...
FAILED ../root::test_hidden_adversarial_lag_and_overlap_probes - AssertionErr...
======================== 10 failed in 259.27s (0:04:19) ========================
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 8 items
../root::test_artifact_schema_and_source_protocol FAILED [ 12%]
../root::test_prediction_alignment_and_persistence PASSED [ 25%]
../root::test_forecast_matches_independent_svd_ridge PASSED [ 37%]
../root::test_serialized_model_is_correct_and_reproduces_predictions PASSED [ 50%]
../root::test_forecast_report_metrics_are_recomputed_correctly PASSED [ 62%]
../root::test_information_tensor_matches_independent_knn_recomputation FAILED [ 75%]
../root::test_peak_arrays_rankings_and_memory_metrics FAILED [ 87%]
../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()
predictions = submitted_predictions()
> information = submitted_information()
^^^^^^^^^^^^^^^^^^^^^^^
test_outputs.py:463:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_outputs.py:389: in submitted_information
return {name: np.asarray(archive[name]).copy() for name in archive.files}
^^^^^^^^^^^^^
/usr/local/lib/python3.12/site-packages/numpy/lib/npyio.py:256: in __getitem__
return format.read_array(bytes,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
fp = <zipfile.ZipExtFile name='feature_names.npy' mode='r'>
allow_pickle = False, pickle_kwargs = {'encoding': 'ASCII', 'fix_imports': True}
def read_array(fp, allow_pickle=False, pickle_kwargs=None, *,
max_header_size=_MAX_HEADER_SIZE):
"""
Read an array from an NPY file.
Parameters
----------
fp : file_like object
If this is not a real file object, then this may take extra memory
and time.
allow_pickle : bool, optional
Whether to allow writing pickled data. Default: False
.. versionchanged:: 1.16.3
Made default False in response to CVE-2019-6446.
pickle_kwargs : dict
Additional keyword arguments to pass to pickle.load. These are only
useful when loading object arrays saved on Python 2 when using
Python 3.
max_header_size : int, optional
Maximum allowed size of the header. Large headers may not be safe
to load securely and thus require explicitly passing a larger value.
See :py:func:`ast.literal_eval()` for details.
This option is ignored when `allow_pickle` is passed. In that case
the file is by definition trusted and the limit is unnecessary.
Returns
-------
array : ndarray
The array from the data on disk.
Raises
------
ValueError
If the data is invalid, or allow_pickle=False and the file contains
an object array.
"""
if allow_pickle: