Undefined function 'svmfunc' for input arguments of type 'double'. Error in svmfyp (line 186) results=svmfunc(TrainingSet,GroupTrain,TestSet); help me..this error appear
조회 수: 1 (최근 30일)
이전 댓글 표시
%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
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Web Services에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!