Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用matlab进行回归分析_Matlab_Deep Learning_Regression_Counting_Feature Extraction - Fatal编程技术网

用matlab进行回归分析

用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

我试图用一个例子来学习DL。但是,运行以下代码会导致错误

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())。

请不要只发布链接答案,而是将相关摘录复制到页面上。如果任何一个页面被移动或删除,链接和答案都没有什么用处。