Guest User

Untitled

a guest
May 25th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. year2012= xlsread('year2012.xlsx');
  2. XTrain=year2012(1:91,1:2);
  3. YTrain=year2012(1:91,3);
  4. model1 = svmtrain(YTrain,XTrain, '-s,4, -n,3,-c,10,-b,1');
  5. save model1 model1;
  6.  
  7. load('model1.mat')
  8. year2012= xlsread('year2012.xlsx');
  9. feaures=year2012(1:91,4:5);
  10. m=zeros(91,1);
  11. [predicted_label, ~, ~] = svmpredict(m, feaures, model1,'libsvm_options');
  12.  
  13. Accuracy = 0% (0/91) (classification)
Add Comment
Please, Sign In to add comment