Changeset 100
- Timestamp:
- 04/21/15 09:51:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prextra/emc.m
r5 r100 27 27 % P.O. Box 5031, 2600 GA Delft, The Netherlands 28 28 29 function w = emc(a,b,classf,labtype,fid) 30 if nargin < 5, fid = []; end 29 function w = emc(a,b,classf,labtype) 31 30 if nargin < 4 | isempty(labtype), labtype = 'crisp'; end 32 31 if nargin < 3 | isempty(classf), classf = qdc; end … … 53 52 nlab = getnlab(a); 54 53 lablist = getlablist(a); 54 p = getprior(a); 55 55 a = setlabels(a,nlab); 56 a = setprior(a,p); 56 57 a = setlabtype(a,labtype); 57 58 switch labtype … … 61 62 lab = zeros(size(b,1),c); 62 63 end 63 b = dataset(+b);64 b = prdataset(+b); 64 65 w = a*classf; 65 66 66 prprogress(fid,'\nem_classifier optimization\n')67 67 while change > epsilon 68 68 d = b*w; … … 81 81 c = [a; b]; 82 82 w = c*classf; 83 prprogress(fid,' change = %d\n', change)84 83 end 85 84
Note: See TracChangeset
for help on using the changeset viewer.