-
Notifications
You must be signed in to change notification settings - Fork 9
Flexible NaN-handling #34
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
For ensemble-based scoring rules, we need flexible handling of missing values in ensemble members. Currently, ensemble-based metrics such as the CRPS return NaN if there is one or more NaNs in the ensemble members. It may be the case that users have an ensemble with a few NaNs (e.g. with lagged ensembles you have NaNs for some timestamps) but still want to get a valid score.
Proposed Solution
We plan on allowing users to specify a nan_policy argument to ensemble metrics that controls how NaN values are handled. The argument will take three possible values:
- propagate (default): current behavior - return NaN if any ensemble member is NaN
- omit: ignores NaN values during ensemble metric computation
- raise: raise an error if NaN values are encountered
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request