[Mne_analysis] Dimensions problems with using searchlight

JR KING jeanremi.king at gmail.com
Tue Oct 24 11:21:42 EDT 2017
Search archives:

Your script suggests that your estimator (time_decod) is a
SlidingEstimator. Since you mention using CSP, I guess you did
time_decod = SlidingEstimator(CSP())

If so, SlidingEstimator will loop over the last dimension of X. If your X
is of shape (n_epochs, n_channels, n_times), then it will loop over time.

This means that CSP only has access to a single time sample, hence the
complain.

Hope that helps,

JR



On 24 October 2017 at 11:13, Aditya P Singh <adityasingh at utexas.edu> wrote:

> Hi MNE,
>
> I am trying to apply the example of using CSP to decode for motor
> responses and in time frequency, but I keep getting an error from my scores
> = cross_val_multiscore(time_decod, X, y, cv=5, n_jobs=1), saying "X must
> have at least 3 dimensions." I know that the X that i put in is the 3-D
> epochs data, but this error comes from a command run in the CSP function
> with  "def _check_Xy(self, X, y=None):" I was wondering what I could do to
> solve this issue.
>
> Aditya Singh
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20171024/73245889/attachment.html 


More information about the Mne_analysis mailing list