Skip to content

Update of SA-xTRCA algorithm #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

JIeLu-Wu
Copy link
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
Copy link
Collaborator

@ch-MEIJIE ch-MEIJIE left a comment

Choose a reason for hiding this comment

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

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

Copy link
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
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
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