用matlab进行回归分析
我试图用一个例子来学习DL。但是,运行以下代码会导致错误用matlab进行回归分析,matlab,deep-learning,regression,counting,feature-extraction,Matlab,Deep Learning,Regression,Counting,Feature Extraction,我试图用一个例子来学习DL。但是,运行以下代码会导致错误 imds = imageDatastore(fullfile(rootFolder),'Labels',lab.labels35_16); imds.ReadFcn = @(filename)readAndPreprocessImage(filename); [trainingSet, testSet] = splitEachLabel(imds, 0.3, 'randomize'); trainingFeatures = act
imds = imageDatastore(fullfile(rootFolder),'Labels',lab.labels35_16);
imds.ReadFcn = @(filename)readAndPreprocessImage(filename);
[trainingSet, testSet] = splitEachLabel(imds, 0.3, 'randomize');
trainingFeatures = activations(convnet, trainingSet, featureLayer, ...
'MiniBatchSize', 32, 'OutputAs', 'columns');
对于类型为“double”的输入参数,错误为未定义函数“categories”。我知道原始示例中的类别是基于字符串的标签。但我的是int值。
不知道为什么它不起作用。请帮助从的文档中,似乎输入需要是一个。您可能需要进行分类(category())。请不要只发布链接答案,而是将相关摘录复制到页面上。如果任何一个页面被移动或删除,链接和答案都没有什么用处。