We are exploiting the Braindecode package to classify left and right hand imagery.
We implemented an example python code starting with:
dataset = BNCI2014001(subject_ids=[1])
…
windows_dataset = create_windows_from_events(…)
train_set, valid_set = train_test_split(windows_dataset.datasets, test_size=0.2, random_state=42)
…
and then when we try:
clf.fit(train_set, y=None)
the python interpreter gives an error saying:
ValueError: No y-values are given (y=None).
The Braindecode documentation says that the y (target) values are already in the train_set var. Do you have an explanation?