[Mne_analysis] Decoding Issue

JR KING jeanremi.king at gmail.com
Sat Nov 4 10:50:52 EDT 2017
Search archives:

Dear Aditya,

This is a sklearn-related issue.

You can can fix it by using y as an arrays of 0s and 1s.

Best,

Jean-Rémi


On 4 November 2017 at 10:43, Aditya P Singh <adityasingh at utexas.edu> wrote:

> Hi MNE,
>
> I was trying to use your example on Decoding sensor space data, however, I
> keep getting the error "roc_auc scoring can only be computed for two-class
> problems". My epochs events, are separated into two classes using the dict
> function that mne often uses so I am not sure what the issue is. My "y" is
> an array([2, 2, 2, ..., 1, 1, 1]), but the roc_auc error comes up "if
> np.ndim(y) != 1 or len(set(y)) != 2:", so I am not sure how to fix this
> problem.
>
> Thank you,
> 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/20171104/1e54477c/attachment.html 


More information about the Mne_analysis mailing list