-
Notifications
You must be signed in to change notification settings - Fork 12
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
[CPP] Remove zero diameter check for edges in 0-dim computation #43
Conversation
This was due to adding non-finite diagonal elements to themselves when doing dm + dm.T, but we can avoid having those elements in the first place
@MonkeyBreaker the test is good, but unlike what I confidently stated above it does not fail (or fails so rarely I couldn't make it fail) on current What I am thinking is:
|
Well we must be confident that our test fails if we break something.
Well, instead of having at the end of the test, implement 2 test, one with hypothesis that produces multiple tests.
Sure, I can also cross-validate |
Not sure I follow -- this would definitely happen after my edits. But it is the same test -- for the same property. Testing with hypothesis covers tricky things like overflows, etc, while the hard-coded example makes sure we don't regress. But it is the same property (equivariance) that is being tested. |
On the other hand, I'm happy to split the tests -- e.g. because otherwise the same specific |
…i#31 Also revert import ordering change as suggested by @MonkeyBreaker
@MonkeyBreaker I have now added the separate explicit regression test as discussed. I checked that it fails on Let me know if you'd like further changes for this PR. |
I am good that we have 2 separate test for validating a feature. I was afraid that with only 1 test (without the case we are always sure it fails), we could not really with certitude if all test are good. But now, with both of the test implemented, I am happy :) |
LGTM ! |
Fixes #31, adding a unit test for "equivariance" (the property I was checking for in the example in #31) which fails in
main
but not after the fix.New version of #41.