SVM Training: prediction do not give expected result for 1 column feature
조회 수: 1 (최근 30일)
이전 댓글 표시
I only have observation with one feature (column) only
- The positive observation have values with 83% below 1 (so 17% above 1). Number of positive observation is 8K only
- Negative observation have values with 74% above 1 (so 16% below 1).Number of negative observation is 105KI feed those observation into matlab function fitcsvm:
svmStruct = fitcsvm(features,Y,'Standardize',true, 'Prior','uniform','KernelFunction','linear','KernelScale','auto','Verbose',1,'IterationLimit',1000000);
I expecting when I run predict to give me 1 for positives feature because it trained for most positive features are less than 1 and most negative features are greater than one. However when run predict
[label,score,cost]= predict(svmStruct, postive_features) ;
all label are zero, which is not an expected answer. I dont know why? does SVM works when there is only 1 features?
Notice, also I got message " SVM optimization did not converge to the required tolerance." after running fitcsvm
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Classification Ensembles에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!