-
Notifications
You must be signed in to change notification settings - Fork 30
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
Array index is out of bound io matToPython.py #3
Comments
@jungla88 The loop index was not used because all the operations were performed on 'd' and it can be safely removed. |
I am not sure about the dataset, but it should come from the original website of BCI competition.
My temporary workaround is to set j=0, returning a structure with shape (#channels, #time). This make all works and EEG Dataset with FBCNet do not raise any error about data. |
I had the same problem. I think the issue lies in the shape of mat type data. We cannot collect all 288 experimental data when the hyperparameter event Code sets [2]. |
Same situation here. |
I agree with @xinyiccc. After analyzing the codes at
From the count distribution of However, changing the eventCode still raises error for |
I have the same solution as you, but I also encountered this problem @ t170815518. Fortunately, I found the cause of the problem. The reason is that the experimental results of the fourth subject are incomplete, which leads to the fact that its four classification labels are not [7,8,9,10], but [5,6,7,8]. After I solve this problem, the code can run correctly. I hope it can also help you. |
Thank you for this! @xinyiccc |
@jungla88 @t170815518 @xinyiccc Thank you for helping debug this issue. I have patched the saveData.py file. Do download the latest version and share if it solves your issue. |
I think there are some confusion with loop indices in this file:
Index
i
in first loop is never used (check with IDE or any linter), whilstj
goes out of bound ford[data][eeg]
(I checked only the first branch). Shapes for BCI2a dataset is the following:The text was updated successfully, but these errors were encountered: