nci / scores

scores: Metrics for the verification, evaluation and optimisation of forecasts, predictions or models.
https://scores.readthedocs.io/
Apache License 2.0
67 stars 18 forks source link

Provide more support for xr.Datasets as inputs #702

Open nicholasloveday opened 1 month ago

nicholasloveday commented 1 month ago

Some metrics only support xr.DataArrays. I have received feedback from users who would like to be able to use scores primarily with xr.Datasets.

nicholasloveday commented 1 month ago

For functions that currently take an xr.DataArray and return an xr.Dataset with under/over forecast penalties, consider returning an xr.DataArray with a new dimension called "components".

If we go down this path, we will have to update Jive to be compatible if it expects an xr.Dataset.