BrainDecode issue with target values

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?

Ok, we think we solved the issue.
We used the example of the Braindecode documentation site.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.