Quantus icon indicating copy to clipboard operation
Quantus copied to clipboard

Catch invalid metric output

Open leanderweber opened this issue 2 years ago • 0 comments

Description of the problem

Some metrics may output inf or nan values when inputting certain attributions.

Description of a solution

Such behavior should be caught and, at the very least, the user should be warned that the output contains invalid values and may need to be sorted out. Optimally, some information about what caused this could be given. E.g., 0 attributions, nan attributions were passed etc?

Minimum acceptance criteria

  • Above warning is implemented.
  • No metric "quietly" outputs invalid values anymore.
  • @annahedstroem

leanderweber avatar Dec 06 '22 10:12 leanderweber