Undefined function 'svmfunc' for input arguments of type 'double'. Error in svmfyp (line 186) results=sv​mfunc(Trai​ningSet,Gr​oupTrain,T​estSet); help me..this error appear

2 views (last 30 days)
%SVM clc Train=[data2bl(1:150,:);data3bl(1:150,:);data4bl(1:150,:);data5bl(1:150,:)]; Test=[data2bl(151:200,:);data3bl(151:200,:);data4bl(151:200,:);data5bl(151:200,:)];
t0(1:150)=1; t2(1:150)=2; t4(1:150)=3; t6(1:150)=4; t8(1:150)=5;
Tc=[t0,t2,t4,t6,t8]; Tc=Tc';
t1(1:50)=1; t3(1:50)=2; t5(1:50)=3; t7(1:50)=4; t9(1:50)=5;
Tb=[t1,t3,t5,t7,t9]; Tb=Tb';
TrainingSet=Train; TestSet=Test; GroupTrain=Tc; results=svmfunc(TrainingSet,GroupTrain,TestSet); disp('multi class problem'); disp(results);
Tb_vec=ind2vec(Tb); TARGETS=Tb_vec; OUTPUTS=ind2vec(results'); [c,cm,ind,per]=confusion(TARGETS,OUTPUTS);
Matrik_test=[cm(:,:),per(:,3)*100]; Performance=sum(per(:,3))/5*100

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!