You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ransac return a lot more bad channels than matlab version #8
Hi, I'm Yorguin I've been studying the prep code for some time now. I'm testing differences between matlab's results and the current pyprep implementation. I have noticed that when I run pyprep I get an unusually high number of bad channels and in particular for the ransac criteria. For example:
I'm currently working on it and I think I have found the mistake (it is actually outside the ransac) so I made a fork where I will put the changes that I made. With the changes I implemented we get: [10,41,44,49, 50, 52 ,54, 65]
** This was done skipping the line noise multitaper notch (for both matlab and pyprep) because that took too long to run the tests...
Apart from this I was able to find out a way to make the ransac less memory hungry using either one of two methods:
Automatically calculate the resample rate needed for the ransac to fit into memory.
Calculate the ransac in a more channels wise manner.
There are also some little discrepancies in the logic of the Matlab PREP and in pyprep here and there. Particularly in performReference method.
I will be uploading those changes to the fork in a separated manner so it is easier to keep track of the changes.
Hi @yjmantilla thanks for this report! Once you are done pushing the changes to your fork, feel free to make a pull request here. We can integrate your fixes and make a new release of pyprep.
Activity
sappelhoff commentedon Mar 23, 2020
Hi @yjmantilla thanks for this report! Once you are done pushing the changes to your fork, feel free to make a pull request here. We can integrate your fixes and make a new release of pyprep.