I am confused about my code, can you guys please help me to tell me what SVM did I use?

1 回表示 (過去 30 日間)
i'm looking for code, then I changed it a little bit, and now i'm confused about multi class SVM. Can you guys tell me my code is one vs one or one vs all multi class svm? thank you in advance...
load('trainingData.mat');
load('testingData.mat');
TrainingSet = Xtrain;
TestingSet = Xtest;
GroupTraining = Ytrain;
GroupTesting = Ytest;
% t = templateSVM('KernelFunction','gaussian');
% t = templateSVM('KernelFunction','linear');
%t = templateSVM('KernelFunction','polynomial');
train = fitcecoc(TrainingSet,GroupTraining, 'Learners', t);
classification = predict(train, TestSet);
confusionchart(GroupTesting', classification')
ConfusionMatrix = confusionmat(GroupTesting', classification')

採用された回答

Walter Roberson
Walter Roberson 2022 年 1 月 26 日
One vs One when you use fitcecoc

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeClassification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by