Skip to content

Update of SA-xTRCA algorithm#89

Open
JIeLu-Wu wants to merge 4 commits into
TBC-TJU:masterfrom
JIeLu-Wu:master
Open

Update of SA-xTRCA algorithm#89
JIeLu-Wu wants to merge 4 commits into
TBC-TJU:masterfrom
JIeLu-Wu:master

Conversation

@JIeLu-Wu

Copy link
Copy Markdown
Contributor

I added the SA-xTRCA class in cca.py and implemented a demo for phase alignment and classification using SA-xTRCA. In addition, I provided a portion of the experimental data (from 10 subjects) used in my research, which is included in the SA-xTRCA_demo folder. All data files are in .mat format.

I added the SA-xTRCA class in cca.py and implemented a demo for phase alignment and classification using SA-xTRCA. In addition, I provided a portion of the experimental data (from 10 subjects) used in my research, which is included in the SA-xTRCA_demo folder. All data files are in .mat format.
Modified some comments

@ch-MEIJIE ch-MEIJIE left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请查看review内容,需要进行修改

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果需要提交数据集,需要创建一个数据集类,请参考metabci/brainda/datasets下的数据集构建方式,继承BaseDataset构建一个数据集。数据集原始数据可以上传到zendo平台https://zenodo.org/

请麻烦修改,感谢!

self.T_min = 1
self.t_i = []

def trca_kernel(self, X: ndarray):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

该文件存在一个_trac_kernel函数,请考虑服用。观察到还需要对特征值进行一定操作,如果无法复用,请修改类函数名。

labels = self.classes_[np.argmax(feat, axis=-1)]
return labels

def trca_train(self, X: ndarray, y: ndarray):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个函数和trca_kernel是否存在重复?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants