Feature Selection using Correlation-based method

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!

 Respuesta aceptada

yanqi liu
yanqi liu el 30 de Dic. de 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 comentarios

Nina Perf
Nina Perf el 3 de En. de 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?
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))

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2021a

Preguntada:

el 9 de Dic. de 2021

Editada:

el 16 de Mzo. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by