AttributeError: 'bool' object has no attribute 'sum' #62
-
---> 24 accuracy = (hypno == y_pred).sum() / y_pred.size In this case, it was edf, not fif! I wonder if you can't do it with an edf. |
Beta Was this translation helpful? Give feedback.
Answered by
raphaelvallat
Apr 26, 2022
Replies: 1 comment 1 reply
-
Yes you can use the mne.io.read_raw_edf to load an EDF file, and then all the subsequent steps should be the same. I think that there is something wrong with your |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
remrama
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you can use the mne.io.read_raw_edf to load an EDF file, and then all the subsequent steps should be the same.
I think that there is something wrong with your
hypno
variable, it should be a vector and not a boolean (True / False).