Not able to classify the features correctly
I am following the example on this page : Example of 10-fold SVM classification in MATLAB. Basically, i am following the example to execute my classification. The problem i face is that pred is always postive. It is not able to detect negative data. clear all; clc; load('C:\Users\HP\Documents\MATLAB\TrainLabel'); load('C:\Users\HP\Documents\MATLAB\TrainVec'); cvFolds = crossvalind('Kfold', TrainLabel, 10); cp = classperf(TrainLabel); for i = 1:10 testIdx = (cvFolds == i); trainIdx = ~testIdx; % Model = svmtrain(TrainVec(trainIdx,:), TrainLabel(trainIdx),'showplot',true); Model = svmtrain(Train
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.