# Decoding Issue

**URL:** <https://mne.discourse.group/t/decoding-issue/1354>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [November 4, 2017, 2:43pm UTC](https://mne.discourse.group/t/decoding-issue/1354 "2017-11-04T14:43:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [November 4, 2017, 2:43pm UTC](https://mne.discourse.group/t/decoding-issue/1354/1 "2017-11-04T14:43:46Z")

</div>

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  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20171104/e01186d9/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20171104/e01186d9/attachment-0001.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [November 4, 2017, 2:49pm UTC](https://mne.discourse.group/t/decoding-issue/1354/2 "2017-11-04T14:49:50Z")

</div>

Hi,

Can you share a code snippet to reproduce the problem?

Mainak

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [November 4, 2017, 2:50pm UTC](https://mne.discourse.group/t/decoding-issue/1354/3 "2017-11-04T14:50:52Z")

</div>

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
