Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- year2012= xlsread('year2012.xlsx');
- XTrain=year2012(1:91,1:2);
- YTrain=year2012(1:91,3);
- model1 = svmtrain(YTrain,XTrain, '-s,4, -n,3,-c,10,-b,1');
- save model1 model1;
- load('model1.mat')
- year2012= xlsread('year2012.xlsx');
- feaures=year2012(1:91,4:5);
- m=zeros(91,1);
- [predicted_label, ~, ~] = svmpredict(m, feaures, model1,'libsvm_options');
- Accuracy = 0% (0/91) (classification)
Add Comment
Please, Sign In to add comment