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
cannot run MDM example #40
Comments
This is a common error when the data are rank deficient (high dimension or when a common average reference has been applied). I will make a FAQ for this one. you can also check out the example section of the doc for more examples |
Aah, I should have thought of that ! Indeed I've removed eyeblinks w/ ICA ! Thanks for the prompt response :) |
Note that decoding is generally resistant to eye artefacts, so it might Le 23 août 2016 16:03, "nbara" notifications@github.com a écrit :
|
Noted, thanks! |
Alex, I think an explicit test/ error could help, wdyt? Le 23 août 2016 16:15, "nbara" notifications@github.com a écrit :
|
yep, i was thinking about the same thing. i'm not found of testing for positivness, as the check in itself will slow everything down. |
Right, catching the nan should suffice. Is there any other reasons to get Le 23 août 2016 16:33, "alexandre barachant" notifications@github.com a
|
To the best of my knowledge, this error is always fixed by regularization so it's safe to catch the ValueError and replace the error message. @nbara what do you think of :
Would it be helpful ? |
LGTM, perhaps add a isnan check before fitting to ensure this is indeed the Le 23 août 2016 16:44, "alexandre barachant" notifications@github.com a
|
The nan is in the scipy function, so it's hard to catch. I will open a PR today. |
hum, i can also remove the |
I mean check that X doesn't contain any nan in the first place, I suppose Le 23 août 2016 16:49, "alexandre barachant" notifications@github.com a
|
This check has to be done at the lowest level possible i.e. in the function |
Hi Alexandre,
I was trying the cross-validation classification example code from the homepage on some toy EEG data (64 channels), but I keep running into the following error:
I tracked the error down to the
mean_riemann
method .logm(tmp)
(line 61) is filled with NaNs.My input data is in the following format (Ntrials, Nchannels, Nsamples) :
Let me know if you need more information.
Thanks!
The text was updated successfully, but these errors were encountered: