Systems of struct class cannot be used with the "predict" command. Convert the system to an identified model first, such as by using the "idss" command.

4 ビュー (過去 30 日間)
Asim Muhammad
Asim Muhammad 2016 年 12 月 4 日
編集済み: KSSV 2016 年 12 月 4 日
Training Side
model = fitcecoc(train_feature, train_label, 'Learners', 'Linear', 'Coding', 'onevsall', 'ObservationsIn', 'columns');
Tets side
predictedLabels = predict(model,test_feature);
confMat = confusionmat(test_label, predictedLabels);
confMat = bsxfun(@rdivide,confMat,sum(confMat,2))
mean(diag(confMat))
it is giving error at this line confMat = confusionmat(test_label, predictedLabels);

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by