Traceback (most recent call last):
File "/home/geek/Workspace/BCI/Code/Decoding/FBMSNet/codes/classify/BCIC-IV-2a_fbcsp.py", line 537, in
ML_experiment.experiment()
File "/home/geek/Workspace/BCI/Code/Decoding/FBMSNet/codes/classify/BCIC-IV-2a_fbcsp.py", line 381, in experiment
y_train_predicted[:, j] = classifier.fit(x_features_train, np.asarray(y_train_cls, dtype=float))
File "/home/geek/Workspace/BCI/Code/Decoding/FBMSNet/codes/classify/BCIC-IV-2a_fbcsp.py", line 25, in fit
x_train_features_selected = self.feature_selection.fit(x_features,y_train)
File "/home/geek/Workspace/BCI/Code/Decoding/FBMSNet/codes/classify/BCIC-IV-2a_fbcsp.py", line 40, in fit
MI_features = self.MIBIF(x_train_features, y_train)
File "/home/geek/Workspace/BCI/Code/Decoding/FBMSNet/codes/classify/BCIC-IV-2a_fbcsp.py", line 88, in MIBIF
x_cls.update({i: x_features[cls_indx, :]})
IndexError: index 3 is out of bounds for axis 0 with size 1
Traceback (most recent call last): File "/home/geek/Workspace/BCI/Code/Decoding/FBMSNet/codes/classify/BCIC-IV-2a_fbcsp.py", line 537, in
ML_experiment.experiment()
File "/home/geek/Workspace/BCI/Code/Decoding/FBMSNet/codes/classify/BCIC-IV-2a_fbcsp.py", line 381, in experiment
y_train_predicted[:, j] = classifier.fit(x_features_train, np.asarray(y_train_cls, dtype=float))
File "/home/geek/Workspace/BCI/Code/Decoding/FBMSNet/codes/classify/BCIC-IV-2a_fbcsp.py", line 25, in fit
x_train_features_selected = self.feature_selection.fit(x_features,y_train)
File "/home/geek/Workspace/BCI/Code/Decoding/FBMSNet/codes/classify/BCIC-IV-2a_fbcsp.py", line 40, in fit
MI_features = self.MIBIF(x_train_features, y_train)
File "/home/geek/Workspace/BCI/Code/Decoding/FBMSNet/codes/classify/BCIC-IV-2a_fbcsp.py", line 88, in MIBIF
x_cls.update({i: x_features[cls_indx, :]})
IndexError: index 3 is out of bounds for axis 0 with size 1
请问这是怎么回事呀?