Feature Selection using Correlation-based method
23 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nina Perf
el 9 de Dic. de 2021
Hi,
I want to use the Correlation-based Feature Selection to perform feature selection.
I tried the https://www.mathworks.com/matlabcentral/fileexchange/72177-feature-selection however, it is not working
index = corrSel(X,Y)
[s,idx]= sort(mdl.FeatureWeights,'descend');
Do you know of any other functions in Matlab that do this?
Thanks!
0 comentarios
Respuesta aceptada
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
yanqi liu
el 4 de En. de 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))
Más respuestas (0)
Ver también
Categorías
Más información sobre Classification Ensembles en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!