Repository navigation
[FIX] Make geometric_median tolerance relative - #127
Open
EzraPalmers wants to merge 1 commit into
Open
EzraPalmers wants to merge 1 commit into
EzraPalmers wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #127 +/- ##
=======================================
Coverage 83.28% 83.28%
=======================================
Files 25 25
Lines 2860 2860
=======================================
Hits 2382 2382
Misses 478 478 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
geometric_medianstops when a step moves the estimate by less than an absolutetol. ASR runs it on covariance matrices, so the result depends on the unit of the data. In volts (what MNE returns) the entries are around 1e-10 and the loop stops one step from the mean. In microvolts it often runs tomax_iter.This makes the tolerance relative to the norm of the estimate, which is how EEGLAB's ASR implementation (clean_rawdata) does it. A test checks that scaling the data scales the median.
Before:
After: