-
Notifications
You must be signed in to change notification settings - Fork 34
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
implemented MAD using scipy #153
Conversation
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 for the changes, but the idea would be to replace our custom function _mad
with the scipy implementation, instead of just calling the scipy function from within _mad
. Would you be up for implementing this?
just confirming before making the changes, you want me to remove the _mad function and directly implement scipy in the areas _mad function is called. Am I going in the right direction? |
yes, and resolving this issue would also mean checking that the tests all still pass, and that |
The custom implementation of _mad raised a value error when the input was not in 1D or 2D. Test_utils is expecting a value error that is not thrown by scipy.stats.median_abs_deviation. How do you really want me to fix this issue?
i don't really understand the consequences of omitting this check for 3d arrays. please tell me how to proceed |
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.
I think we could also leave the changes as they are. But the current test suite needs to pass.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #153 +/- ##
==========================================
- Coverage 99.39% 99.39% -0.01%
==========================================
Files 14 14
Lines 1315 1313 -2
==========================================
- Hits 1307 1305 -2
Misses 8 8 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Great, thanks @Ayush-Devs could you please:
Then we can merge this. |
I really hope I correctly updated the citation and changelog files. thank you so much for guiding me through this experience. |
Thanks @Ayush-Devs 🥳 |
PR Description:
this PR closes #149.
median_abs_deviation from scipy.stats is used to compute the MAD.
Merge Checklist
closes #<issue-number>
to [automatically close an issue][auto-close-documentation]CITATION.cff
file