Why sequentialfs changes the number of selected features every time when you run the code...?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I am using the sequentialfs function for the feature selection. But when i run the code multiple times the number of features changes. I would like to know why this happens and how to avoid it.
댓글 수: 1
Ritz
2021년 2월 27일
It might be due to the radomly chosen training and test sets by cvpartition, if you are using kfold cross validation for the criterion function, which is generally preferred while using sequentialfs. The feature-set should not change very much across different runs, few may be different, but more or less it should be stable. In that case, you can report the most frequent feature across multiple runs.
Hope it helps !!
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!