my code is classifying the gender from real time video and i have used svm for classification..i expected to classify correctly by svm but it did not ..this is my code after i used dct for feature extraction ,and i did anew model contain areal data captured by web camera to use in the prediction function called me2 model .. can i have some help please
sample= coefficent';
training=X ;
group = Y;
this is the model contain areal data captured by web camera
load me2.mat
Test3=XX;
Y3=YY;
[ Y,X] = libsvmread('SPECTFlibsvm.train'); model = svmtrain(Y, X,'-c 16 -g 0.0156');
[predict_label, accuracy, prob_estimates] = svmpredict(YY,XX,model); this line code does not work even though it does not give me any error message
if predict_label==1
x='Male';
else
x='Female';
end