-
Notifications
You must be signed in to change notification settings - Fork 263
Geometric median #1565
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
Geometric median #1565
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1565 +/- ##
==========================================
+ Coverage 88.05% 90.90% +2.86%
==========================================
Files 103 109 +6
Lines 10166 10438 +272
==========================================
+ Hits 8951 9488 +537
+ Misses 1215 950 -265
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Nice! A few minor changes needed:
- see DeepSource GitHub action result and address them,
- see my inline comments.
@LPereira95 see my comment about whether we should enforce using the new tests structure here.
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.
Thanks @shubhamtalbar96!
Besides the comments I've made, can you please add tests to divide
that cover the ignore_div_zero
case?
@shubhamtalbar96 any update on this? Thanks! 🙌 |
@ninamiolane will get back on this shortly, apologies for the delay. |
Changed class name according to file name
…/geomstats into geometric-median
@shubhamtalbar96, I've made small changes to the code. Please check if you agree with them. I've also added a sanity check for the manifolds whose points are not matrices, to ensure it runs. I find the test that contains expected data too trivial (I would be happier to test it in a more convincing case for which we know the expected result), but I guess it is OK for now. @ninamiolane from my side is ready to go. P.S. @SaitejaUtpala you may also be interested in review the last changes. |
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.
Excellent, thank you so much for the help @LPereira95 ! LGTM.
Added Geometric Median algorithm to Geomstats, contains appropriate test cases and code coverage.