Changeset 103
- Timestamp:
- 12/07/15 14:41:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prextra/incsvc.m
r5 r103 89 89 fprintf('%d/%d ',c,N); 90 90 end 91 dd_message(6,'ADD obj %d\n',c); 91 92 add_obj_cl; 93 %fprintf('%d [%f',c,alf(setS(1))); 94 %for jj=2:length(setS) 95 % fprintf(' %f',alf(setS(jj))); 96 %end 97 %fprintf(']\n'); 92 98 end 93 99 94 100 % make the classifier 95 W. kernel= kernel;96 W. kpar = kpar;101 W.K = kernel; 102 W.par = kpar; 97 103 J = [setS;setE]; 98 104 W.J = J; 99 105 W.sv = X_incremental(J,:); 100 W. v= y(J).*alf(J,:);106 W.alf = y(J).*alf(J,:); 101 107 W.b = b; 102 108 w = mapping(mfilename,'trained',W,getlablist(a),k,2); … … 121 127 for i=1:n 122 128 X_incremental(nra,:) = a(i,:); 123 Ka = feval(W. kernel,W.kpar,nra,I);124 out(i) = out(i) + Ka(1:(nra-1))*W. v;129 Ka = feval(W.K,W.par,nra,I); 130 out(i) = out(i) + Ka(1:(nra-1))*W.alf; 125 131 end 126 132 newout = [out -out];
Note: See TracChangeset
for help on using the changeset viewer.