iris dataset with SVM

10 views
Skip to first unread message

aicha mabrouk

unread,
May 10, 2017, 4:15:17 AM5/10/17
to Pattern
i use the iris dataset with SVM ,when i calculate the kernel function i have" Length of label vector does not match # of instances"
SSapp=S(1:105,:);
SStest=S(106:150,:);
LS=[1*ones(1,35) 2*ones(1,35) 3*ones(1,35)];

 model1 = svmtrain( LS',SSapp','-s 1 -t 0 -g 0.25  -c 5 -n 0.5 -r 2 -d 3 -b 1'); 

how can i solve this problem ?
Reply all
Reply to author
Forward
0 new messages