Error in classperf() while training CNN

1 回表示 (過去 30 日間)
shefali saxena
shefali saxena 2019 年 2 月 26 日
Hi,
I am trying to classify a set of ECG Data in two classes using CNN.
Iam having input of 40 records as 40x15000 and output as 40x1 categorical.
% layers defined as the CNN architecture model and % option as training option(sgdm)
Indices = crossvalind('Kfold',output , 10);
cp = classperf(output);
for i=1:10
test = (Indices == i);
train = ~test;
net = trainNetwork(input(train,:),output(train,:),layers,options);
class = classify(net,input(test,:));
classperf(cp,class, test);
end
cp.CountingMatrix();
for trainNetwork output must be categorical.
Error using classperf (line 206)
Ground truth must be a cell array of character vectors or a numeric array.
how to solve this error
I am using matlab2018a
please help!!
Thanks

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by