Skip to content

Tighten floating-point comparison tolerances in tests. #219

Open

Description

@deansher

As of this writing, we have tests with wide floating-point comparison tolerances. See, for example, call paths into TestSession.setEpsilon(...). @JimClarke5 reports, "I have seen a wide difference in the number of significant digits in other test cases when I use Java to determine the expected result."

Activity

  1. Craigacp commented on Feb 14, 2021

    @Craigacp
    Collaborator

    Let's be careful with this though. I observe differences of 2% accuracy on mnist across different versions of Java with and without strict math in Tribuo, and math.exp gives different answers depending on java 8, java 9+ and running on x86_64 and arm64 platforms.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions