Top ranking features using fscmrmr() have 0 for scores

조회 수: 2 (최근 30일)
Tyler Hoang
Tyler Hoang 2022년 3월 4일
답변: Prince Kumar 2022년 3월 31일
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

채택된 답변

Prince Kumar
Prince Kumar 2022년 3월 31일
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!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by