Skip to content
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

matlab function issue #2

Open
haozi123456 opened this issue Jan 16, 2021 · 6 comments
Open

matlab function issue #2

haozi123456 opened this issue Jan 16, 2021 · 6 comments

Comments

@haozi123456
Copy link

haozi123456 commented Jan 16, 2021

There seems to be an error in "wAR" function. The parameter 'W' is superfluous in "svmtrain" and will cause error reporting. Only after deleting the 'W' can the program run.
issue

inputParameter

@drwuHUST
Copy link
Owner

drwuHUST commented Jan 16, 2021 via email

@QienJane
Copy link

Hello, Line 23 of the CSPFeature function corresponds to the CSP extraction feature, which should be the eigenvalue and eigenvector of the sum of the two average covariances. What you have calculated here is the inverse matrix of the first type of average covariance multiplied by the eigenvalue and eigenvector of the second type of average covariance. Is this wrong?
image

@drwuHUST
Copy link
Owner

drwuHUST commented Jul 12, 2021 via email

@leileialeilei
Copy link

“wAR”函数中似乎存在错误。参数“W”在“svmtrain”中是多余的,将导致错误报告。只有在删除“W”后,程序才能运行。 问题

输入参数

你好,我在运行程序时也遇到了wAR函数的执行问题。是关于bestC和bestG的,请问这样的问题怎么解决呢?万分期待您的回复!
微信图片_20220827205050

@drwuHUST
Copy link
Owner

This is the function in weighted libsvm https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/#weights_for_data_instances instead of the traditional libsvm.

The code says:

%% Uncomment the following if libsvm-weight is not in your path
addpath('D:\Matlab2020a\toolbox\libsvm-weights-3.24\matlab');

Maybe I should make it clearer. Sorry for that.

@drwuHUST
Copy link
Owner

drwuHUST commented Aug 27, 2022 via email

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

No branches or pull requests

4 participants