Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Support Vector Machine. Help please.
조회 수: 1 (최근 30일)
이전 댓글 표시
*Hai...I wanted to use SVM classifier code given in MATLAB. The problem is that the classifier is not giving correct classification even if i use some of the same training data as test data. What is the problem here ? Please help. thanks in advance. * load data %the features are saved in tha data file 'data'. close all
clc
load data %the features are saved in tha data file 'data'. 'matrix' is a matrix containing 7 columns(7 features). There are 38 observations( that means 38 rows).
data = [matrix(:,1), matrix(:,2)];%selects 1st and 2nd column as training data.
svmStruct = svmtrain(data,species,'Showplot',true);
%test=[matrix(:,3),matrix(:,)];
test=[ 0.0113 0.2382 ] % one of the elements of the training data used as test data.
classes = svmclassify(svmStruct,test)
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!