You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Not really sure if a bug or a design decision but I could not find this case covered in the tests.
When using numpy to calculate the different operations in get_metric_aggregation the functions chosen will return NaN if there is a value in the metric that is NaN.
Pass a metric with a NaN value and several numerical values to get_metric_aggregation
Check the result and you should see that it is NaN
Expected behavior
Handle NaN values to return a statistically meaningful number
Additional context
I could submit a PR if you think this is something that can be changed.
It could even be possible to pass a boolean flag handle_nans as an argument to get_metric_aggregation to choose the behavior.
The text was updated successfully, but these errors were encountered:
Describe the bug
Not really sure if a bug or a design decision but I could not find this case covered in the tests.
When using numpy to calculate the different operations in
get_metric_aggregation
the functions chosen will return NaN if there is a value in the metric that is NaN.For example for:
To Reproduce
Steps to reproduce the behavior:
get_metric_aggregation
Expected behavior
Handle NaN values to return a statistically meaningful number
Additional context
I could submit a PR if you think this is something that can be changed.
It could even be possible to pass a boolean flag
handle_nans
as an argument toget_metric_aggregation
to choose the behavior.The text was updated successfully, but these errors were encountered: