Top ranking features using fscmrmr() have 0 for scores

4 ビュー (過去 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 Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by