Skip to content

ECE metrics need rounding on some simple tests #15

Description

@perellonieto

The current code creates some floating point precision problems when subtracting a probability of 0.9 for a positive sample, in which ECE should be 0.1 but it seems to be 0.09999999999999. I had to round the number and print it in order to pass the doctest, but I wonder if this precision issue can be avoided.

https://github.com/perellonieto/PyCalib/blob/master/pycalib/metrics.py#L460

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions