-
Notifications
You must be signed in to change notification settings - Fork 46
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
[ENH] Add a bad channel detection method using LOF algorithm #66
Conversation
Hey @vpKumaravel, thanks! Will have a look as soon as possible. In the meantime, I activated the CI which where disabled for some reason. Best, Nicolas |
Codecov Report
@@ Coverage Diff @@
## master #66 +/- ##
==========================================
+ Coverage 78.74% 78.78% +0.03%
==========================================
Files 21 22 +1
Lines 2315 2338 +23
==========================================
+ Hits 1823 1842 +19
- Misses 492 496 +4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
@vpKumaravel This is perfect, thanks!
Reference issue
NA
What does this implement/fix?
This PR contains a new feature for bad channel detection using Local Outlier Factor (LOF) algorithm.
File name: lof.py
To be compliant, I also added the test_lof.py file along with the test data lofdata.mat
Additional information
The proposed algorithm is used in Newborns EEG Artifact Removal (NEAR) pipeline published earlier this year. Recently, we analyzed data from adult subjects and the algorithm is adaptable to different populations.
Best regards,
Velu