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
ENH: Ditching regularization - beamformer with rank-based inversion of cov matrix #5362
We have been experimenting with @sarangnemo with a beamformer variant that does not require the setting of a regularization parameter. Instead of regularizing the covariance matrix, it estimates the rank of the covariance matrix and sets the number of rank-deficient components to zero during the inversion of the covariance matrix. Thus, the enhancement of this method is that there is no "guessing" of the regularization parameter involved.
So far, we got very good results with this, especially also on highly rank-deficient data like maxfiltered data.
We do an operation like this for the whitening step in minimum norm inversion. It involves use of an optional rank parameter. It would be great if you could reuse code there as much as possible to do this. And it sounds like a great way to make the two operations have more similar options.
so far, I implemented it from scratch to be able to easily play around with it, if it goes into MNE-Python we should of course refactor! So thanks for the hints, I will look into it!
Activity
larsoner commentedon Jul 24, 2018
We do an operation like this for the whitening step in minimum norm inversion. It involves use of an optional
rankparameter. It would be great if you could reuse code there as much as possible to do this. And it sounds like a great way to make the two operations have more similar options.agramfort commentedon Jul 24, 2018
yes we should do this by default. as @larsoner says it's what is done in MNE/dSPM during the withening step.
cc @vlitvak who suggested the same thing.
we have our phantom data to test this.
britta-wstnr commentedon Jul 26, 2018
so far, I implemented it from scratch to be able to easily play around with it, if it goes into MNE-Python we should of course refactor! So thanks for the hints, I will look into it!
wmvanvliet commentedon Aug 22, 2018
It seems like a no-brainer to me to replace this ugly hardcoded regularization in the current beamformer implementation:
with your approach @britta-wstnr.
agramfort commentedon Aug 23, 2018
larsoner commentedon Nov 5, 2018
We plan to unify in 0.18 now
larsoner commentedon Feb 19, 2021
I think we have this now,
reg=0gives sensical results in the tests at least I think.