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
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 CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by