Infinite-Feature-Selection
Infinite-Feature-Selection copied to clipboard
Cant run the code
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.
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.
Dear Artur I have used that function. Still got error on that line. I got all NAN value after executing line 86 of infFSs
Could you send me the data and the parameters (i.e., alpha) you are using?
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.
the line i executed as follows. load('data.mat') [RANKED, WEIGHT, SUBSET] = InfFS_S(X,Y, alpha);
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.
Many thanks, Artur, for your time and effort. I now got the problem. Hope Author @giorgioroffo will provide solutions for multiclass problems.
Abdul Awal