I am confused about my code, can you guys please help me to tell me what SVM did I use?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Cassandra Adela
am 26 Jan. 2022
Bearbeitet: Walter Roberson
am 2 Feb. 2022
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')
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Classification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!