Infinite-Feature-Selection icon indicating copy to clipboard operation
Infinite-Feature-Selection copied to clipboard

Cant run the code

Open awalece04ku opened this issue 4 years ago • 6 comments

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.

awalece04ku avatar Jun 17 '20 16:06 awalece04ku

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.

arturjordao avatar Jun 17 '20 20:06 arturjordao

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

awalece04ku avatar Jun 19 '20 12:06 awalece04ku

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

arturjordao avatar Jun 19 '20 12:06 arturjordao

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);

awalece04ku avatar Jun 19 '20 16:06 awalece04ku

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.

arturjordao avatar Jun 19 '20 17:06 arturjordao

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

Abdul Awal

awalece04ku avatar Jun 19 '20 19:06 awalece04ku