Feature Selection using Correlation-based method
조회 수: 26 (최근 30일)
이전 댓글 표시
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
채택된 답변
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
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 Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!