Changeset 79 for distools/mclassdc.m
- Timestamp:
- 07/23/13 12:22:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
distools/mclassdc.m
r10 r79 50 50 end 51 51 if nargin < 1 | isempty(D) 52 w = mapping(mfilename,{classf,mode});52 w = prmapping(mfilename,{classf,mode}); 53 53 return 54 54 end … … 65 65 varout = {}; 66 66 if c == 2 67 varargout = map(D,classf);67 varargout = prmap(D,classf); 68 68 return 69 69 end … … 82 82 Dtargets = gettargets(D); 83 83 targets = [Dtargets(:,i) 1-Dtargets(:,i)]; 84 DD = dataset(+D,mlab,targets,'lablist',[1 2]');84 DD = prdataset(+D,mlab,targets,'lablist',[1 2]'); 85 85 end 86 86 if nargout(classf.mapping_file) > 1 87 [v,varo] = map(DD,classf);87 [v,varo] = prmap(DD,classf); 88 88 varout = [varout {varo}]; 89 89 else 90 v = map(DD,classf);90 v = prmap(DD,classf); 91 91 end 92 92 w = [w,setlabels(v(:,1),lablist(i,:))]; … … 114 114 I1 = setdiff([1:c],z); 115 115 if nargout(classf.mapping_file) > 1 116 [v,varo] = map(DD,classf);116 [v,varo] = prmap(DD,classf); 117 117 varout = [varout {varo}]; 118 118 else 119 v = map(DD,classf);119 v = prmap(DD,classf); 120 120 end 121 121 w = [w,setlabels(v(:,1),lab)];
Note: See TracChangeset
for help on using the changeset viewer.