Feature Selection using Correlation-based method

27 vues (au cours des 30 derniers jours)
Nina Perf
Nina Perf le 9 Déc 2021
Modifié(e) : Nina Perf le 16 Mar 2022
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!

Réponse acceptée

yanqi liu
yanqi liu le 30 Déc 2021
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 commentaires
Nina Perf
Nina Perf le 3 Jan 2022
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 le 4 Jan 2022
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))

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by