【发布时间】:2018-12-18 20:27:33
【问题描述】:
在分类任务中,我需要进行特征选择。所以在featSize = 98 特性(变量)中,我想知道哪些是适用的。对于每种组合,我通过调整其超参数来训练分类器。我在使用for 循环时遇到了问题:
for b = 1:(2^featSize) - 1
% this is to choose the features. e.g. [1 0 0] selects the first
% feature out of three features if featSize = 3.
end
Matlab 给出警告:Warning: Too many FOR loop iterations. Stopping after 9223372036854775806 iterations.
我是否以禁止的方式使用for 循环?是否有其他替代方法可以完成此步骤?
【问题讨论】:
标签: matlab machine-learning classification feature-selection