Skip to content

large-scale hot/cold cases too large to run metrics #255

@amymcgovern

Description

@amymcgovern

I setup a script to run the large cases in large_events.yaml and they are too large to run because we can't densify them.

joblib.externals.loky.process_executor._RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/amy/ExtremeWeatherBench/.venv/lib/python3.13/site-packages/joblib/externals/loky/process_executor.py", line 490, in _process
_worker
r = call_item()
File "/home/amy/ExtremeWeatherBench/.venv/lib/python3.13/site-packages/joblib/externals/loky/process_executor.py", line 291, in call
return self.fn(*self.args, **self.kwargs)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/amy/ExtremeWeatherBench/.venv/lib/python3.13/site-packages/joblib/parallel.py", line 607, in call
return [func(*args, **kwargs) for func, args, kwargs in self.items]
~~~~^^^^^^^^^^^^^^^^^
File "/home/amy/ExtremeWeatherBench/src/extremeweatherbench/evaluate.py", line 403, in compute_case_operator
_evaluate_metric_and_return_df(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
forecast_ds=aligned_forecast_ds,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
**metric_kwargs,
^^^^^^^^^^^^^^^^
)
^
File "/home/amy/ExtremeWeatherBench/src/extremeweatherbench/evaluate.py", line 557, in _evaluate_metric_and_return_df
metric_result = metric.compute_metric(
forecast_data,
target_data,
**kwargs,
)
File "/home/amy/ExtremeWeatherBench/src/extremeweatherbench/metrics.py", line 44, in _compute_metric_with_docstring
return _original_compute_metric(self, *args, **kwargs)
File "/home/amy/ExtremeWeatherBench/src/extremeweatherbench/metrics.py", line 44, in _compute_metric_with_docstring
return _original_compute_metric(self, *args, **kwargs)
File "/home/amy/ExtremeWeatherBench/src/extremeweatherbench/metrics.py", line 44, in _compute_metric_with_docstring
return _original_compute_metric(self, *args, **kwargs)
File "/home/amy/ExtremeWeatherBench/src/extremeweatherbench/metrics.py", line 137, in compute_metric
target = utils.maybe_densify_dataarray(target)
File "/home/amy/ExtremeWeatherBench/src/extremeweatherbench/utils.py", line 649, in maybe_densify_dataarray
da.data = da.data.maybe_densify(max_size=max_size)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/amy/ExtremeWeatherBench/.venv/lib/python3.13/site-packages/sparse/numba_backend/_coo/core.py", line 1441, in maybe_densify
raise ValueError("Operation would require converting large sparse array to dense")
ValueError: Operation would require converting large sparse array to dense
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    low priorityfor issues that aren't critical to the workflow or nice-to-have's

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions