Closed akatav closed 5 years ago
what makes you think it's an MNE issue and not a problem with the data?
@agramfort i do not think that it is an MNE issue, rather, perhaps an issue with using CSP in MNE with resting eeg. I am not sure if/how to use MNE with resting data. The data, maybe at fault here but i have received this data after cleaning, artifact correction and other preprocessing steps. i am also scaling the data using the sklearn MinMaxScaler before the above analysis.
please don't use the issue tracker for something that is not a bug in the software.
@agramfort ok, but is there a forum for raising questions about usage.i did not raise this under 'bug'. i raised it under 'blank issue' only.
Hello. It'd be really helpful if an expert here shed some light on using CSP for resting state EEG data. I am trying to predict early and final stages of brain disease. I though i could use CSP for this task as i find some new papers in CSP that work with rest eeg data. Each instance (or patient whose eeg is taken) is a (19*number of sampling time points) matrix. 19 is the number of channels. I do a train-test split of 70%-30%, eventually, would like to learn from a 50-50% split. For each of the train and test sets, a band pass filter is applied for each frequency range and events are created with make_fixed_length_events(). We tried 30s events with 15s overlap and lesser. I also tried 5s events with 2s overlaps and so on. Now, i understand that in resting state, no events are there actually but i did it this way to use the CSP API. Of course, all epochs for a given instance, in this case, is strictly binary (early/final)
A brief snapshot of my code is as follows:
We repeat the above for the testrawarr also.
I use sklearn GridSearch with KFoldK=2,5,10 using different classifiers with parameter tuning, such as lda, qda, decision tree, svc, knn. The training roc_auc is either very poor or very good. Test ROC is less than 50%. I use the np.vstack() method to concatenate all the 3 dimensional epochs in train or test.
Can someone please explain what is wrong with this code or approach ? Would be really helpful. Thanks!