<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi All,<br></div><div class="gmail_default" style="font-size:small">I am new to MNE and need your help to classify my ERPs in two different conditions for 12 subjects. I would like to combine LDA and CSP for this reason in the way that I use the ERPs of let&#39;s say 11 subjects and train my classifier based on that and to test it on the rest of subjects. <br></div><div class="gmail_default" style="font-size:small">My problem is in this line of my code:<br><br>scores = cross_val_score(clf, evoked_data_array, labels, cv=cv, n_jobs=1)<br> <br></div><div class="gmail_default" style="font-size:small">here, my evoked_data_array is an array of [2* number of subjects(24)*number of channels (64)*number of samples of the ERP]. I get this error:<br>Found arrays with inconsistent numbers of samples: [24 64]<br><br></div><div class="gmail_default" style="font-size:small">I guess that&#39;s because I am using a 3D array instead of 2D, right? Do you have any suggestions how I can solve the issue?<br><br></div><div class="gmail_default" style="font-size:small">Thank you very much in advance,<br></div><div class="gmail_default" style="font-size:small">Forooz Shahbazi<br></div></div>