Advertisement
arindam143

SVM2

Dec 25th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.27 KB | None | 0 0
  1. C=[60];
  2. lambda=[10];
  3.  
  4. for i=1:length(C)
  5.     for j=1:length(lambda)
  6.         tic
  7.         t=templateSVM('boxConstraint',C(i),'KernelScale',lambda(j),'KernelFunction','gaussian');
  8.         Mdl=fitcecoc(featTrainNorm,ytTrain,'Learners',t,'Coding','onevsall');
  9.         toc
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement