Feature Selection using Correlation-based method

36 ビュー (過去 30 日間)
Nina Perf
Nina Perf 2021 年 12 月 9 日
編集済み: Nina Perf 2022 年 3 月 16 日
Hi,
I want to use the Correlation-based Feature Selection to perform feature selection.
index = corrSel(X,Y)
[s,idx]= sort(mdl.FeatureWeights,'descend');
Do you know of any other functions in Matlab that do this?
Thanks!

採用された回答

yanqi liu
yanqi liu 2021 年 12 月 30 日
yes,sir,may be use the index to select feature,and then retrain model,such as
index=corrSel(feature,class)
selected_features=feature(:,index)
mdl=train(selected_features,labels(index))
  2 件のコメント
Nina Perf
Nina Perf 2022 年 1 月 3 日
Thank you for the feedback!
Can you please help me with an example on "how to plot the top 5 features" using the corrSel method?
yanqi liu
yanqi liu 2022 年 1 月 4 日
yes,sir,use top 5 features,may be set
index=corrSel(feature,class)
index=index(1:5)
selected_features=feature(:,index)
mdl=train(selected_features,labels(index))

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by