Top ranking features using fscmrmr() have 0 for scores

3 visualizaciones (últimos 30 días)
Tyler Hoang
Tyler Hoang el 4 de Mzo. de 2022
Respondida: Prince Kumar el 31 de Mzo. de 2022
Hi,
I used fscmrmr() on a dataset of 100 observations by 1000 features. The top 100 features have scores 0 where as the remaining features have some scores > 0. Is this normal?
Assuming the idx and scores below were already ranked.
[idx,scores] = fscmrmr(X,Y);
Many thanks

Respuesta aceptada

Prince Kumar
Prince Kumar el 31 de Mzo. de 2022
Hi,
Please have a look at the following example from fscmrmr for better understanding.
load ionosphere
[idx,scores] = fscmrmr(X,Y);
bar(scores(idx))
xlabel('Predictor rank')
ylabel('Predictor importance score')
One important thing to note is that idx and scores are in sorted order.
scores
scores = 1×34
0.0662 0 0.0214 0.0756 0.2905 0.0068 0.0345 0.0085 0.0128 0.0063 0.0023 0.0274 0.0079 0.0007 0.0145 0.0014 0.0018 0 0.0073 0 0.0141 0 0.0066 0.0310 0.0086 0 0.0098 0 0.0280 0.0072
idx
idx = 1×34
5 4 1 7 24 29 12 3 34 33 15 21 9 32 31 27 25 8 13 19 30 6 23 10 11 17 16 14 2 18
Hope this helps!

Más respuestas (0)

Productos


Versión

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by