Skip to content

Float precision issue in get_confusion_matrix  #7186

Description

@catherinetaylor2

Describe the bug
We found that the number of true negatives was being incorrectly computed by get_confusion_matrix when we input high resolution volumes. This was due to the algorithm casting to a float:
image

To Reproduce
Steps to reproduce the behavior:
image

Expected behavior
We would expect that the sum(label + pred) <= sum(label) + sum(pred) such that the number of true negatives is not greater than the total number of voxels in the volume.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions