bbci / bbci_public

MATLAB toolbox for Brain-Computer Interfacing (BCI)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crossvalidation crashes when train size = 1

drsternburg opened this issue · comments

The reshaping in crossvalidation, line 100, assumes that the last dimension contains the epochs. However, if the training set only contains 1 element (e.g. by using sample_leaveOneOut), this is not the case and the features have wrong dimensionality.