Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: increase ABS_TOL to account for non-deterministic models #88

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

danielezhu
Copy link
Contributor

Issue #, if available:

Description of changes:
ABS_TOL is used when comparing two EvalScore objects via the __eq__ method. The main use case for comparing EvalScore objects is in testing. End-to-end container tests rely on EvalScore comparison when comparing output.json results.

Because some models cannot be made deterministic, the same processing job will produce output.json where the EvalScores may be off by ~1e-3. These outputs should be treated as equal, for the purpose of testing. Thus, we need to increase the tolerance used by __eq__ accordingly.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Satish615
Satish615 previously approved these changes Nov 1, 2023
nathanng17
nathanng17 previously approved these changes Nov 1, 2023
pinaraws
pinaraws previously approved these changes Nov 1, 2023
@danielezhu danielezhu merged commit 33b58cd into aws:main Nov 1, 2023
3 checks passed
@danielezhu danielezhu deleted the update_abs_tol branch November 1, 2023 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants