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

Cant run the code #1

Open
awalece04ku opened this issue Jun 17, 2020 · 6 comments
Open

Cant run the code #1

awalece04ku opened this issue Jun 17, 2020 · 6 comments

Comments

@awalece04ku
Copy link

Many thanks for the code.
I got an error due to missing functions.

Can you please upload an example of the code so that users can find it more useful?
Thanks in advance.

@arturjordao
Copy link

Dear @awalece04ku
I believe the missing function is the muteinf. You can find it at https://www.mathworks.com/matlabcentral/fileexchange/56937-feature-selection-library.

I hope this helps you.

Best regards,
Artur Jordão.

@awalece04ku
Copy link
Author

Dear Artur
I have used that function. Still got error on that line. I got all NAN value after executing line 86 of infFSs

@arturjordao
Copy link

Could you send me the data and the parameters (i.e., alpha) you are using?

@awalece04ku
Copy link
Author

Dear Artur
please unzip data.zip file.

Many thanks in advance for your time and effort in investigating the error.
Also please suggest any modification so that I can run.

data.zip

the line i executed as follows.
load('data.mat')
[RANKED, WEIGHT, SUBSET] = InfFS_S(X,Y, alpha);

@arturjordao
Copy link

Dear @awalece04ku,

I see the problem. Your labels are in an incorrect format. Try this before calling InfFS_S(X, Y, alpha):
Y = randi([0, 1], [size(Y, 1), 1]);
Y(find(Y==0)) = -1;

In summary, the labels need to be between -1 and 1. For example, see "[length(find(Y==+1)) length(find(Y==-1))] / n;" in the muteinf function.

Unfortunately, I believe the current source code (InfFS_S) does not support multiclass problems. Thus, in the current form, InfFS_S is not suitable for your data as your labels present three categories.

I hope this helps you.
Best Regards,
Artur Jordão.

@awalece04ku
Copy link
Author

awalece04ku commented Jun 19, 2020

Many thanks, Artur, for your time and effort.
I now got the problem.
Hope Author @giorgioroffo will provide solutions for multiclass problems.

Abdul Awal

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

2 participants