Skip to content

Float precision issue in get_confusion_matrix  #7186

Closed

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

  1. added
    bugSomething isn't working
    on Nov 2, 2023
  2. added a commit that references this issue on Nov 2, 2023
    1de4b5f
  3. added a commit that references this issue on Nov 2, 2023
    2658b00
  4. added a commit that references this issue on Jan 30, 2024
    3fc1993
  5. added a commit that references this issue on Apr 11, 2024
    e07b1df
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