-
Notifications
You must be signed in to change notification settings - Fork 338
Fix #881 Snippets Unit Test Assertion Failure #892
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0a7a3eb
add test function to test_precision, expecting assertion failure
NimaSarajpoor 169412b
add post processing to have symmetry property of distance without los…
NimaSarajpoor 1f88643
Merge branch 'main' into fix_snippet
NimaSarajpoor 24929d8
retrieve code, expecting error
NimaSarajpoor df6a9b1
reduce arithmetic operation to reduce loss of precision
NimaSarajpoor 731fdf2
revise equation to mitigate loss of precision
NimaSarajpoor 97c3131
add test function to check precision for _calculate_squared_distance
NimaSarajpoor 8524458
minor change
NimaSarajpoor e2ad600
change order of test function in test_precision
NimaSarajpoor 0849c6d
add parentheses to make sure the ouput remains the same when values a…
NimaSarajpoor d276b8b
avoid fastmath reassoc flag to increase floating point precision
NimaSarajpoor eeb8608
enhance test function
NimaSarajpoor eb9b148
add fatmath flag reassoc and remove ninf
NimaSarajpoor d6043b1
minor change in test function
NimaSarajpoor 549c8a9
increase decimal coverage in assertion
NimaSarajpoor d473602
remove nnan from fastmath to be consistent with other func in core.py
NimaSarajpoor ab044f2
use assert to make sure two values are identical
NimaSarajpoor 1365cb3
re-order arithmetic operation to increase safety and stability of the…
NimaSarajpoor 89b8afb
add test function for distance symmetry propery in gpu
NimaSarajpoor 2205916
add parentheses and change order of multiplication
NimaSarajpoor 47a5094
skip testing gpu-based test func if cude is not available
NimaSarajpoor dc1160f
Merge branch 'main' into fix_snippet
NimaSarajpoor 56cbf9d
perform assersion with numpy testing instead of assert to be more exp…
NimaSarajpoor 806d16d
Merge branch 'main' into fix_snippet
NimaSarajpoor 9736fee
reduce precision to pass tests for minimum version
NimaSarajpoor 5dcc5c4
add comment to test function to explain its purpose
NimaSarajpoor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment to show the purpose of this particular test function.
For example, we may write: