Changeset 79 for distools/ksvc.m
- Timestamp:
- 07/23/13 12:22:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
distools/ksvc.m
r10 r79 95 95 end 96 96 if nargin < 1 | isempty(K), 97 W = mapping(mfilename,{C,kc,r});97 W = prmapping(mfilename,{C,kc,r}); 98 98 W = setname(W,'Kernel Support Vector Classifier (KSVC)'); 99 99 return; … … 115 115 116 116 % TRAIN THE CLASSIFIER 117 if ~isa(C,' mapping')117 if ~isa(C,'prmapping') 118 118 islabtype(K,'crisp'); 119 119 isvaldset(K,1,2); % Expect at least 1 object per class and 2 classes … … 167 167 168 168 % Store the results 169 W = mapping(mfilename,'trained',{me,J,T,v,reg},getlablist(K),k,2);169 W = prmapping(mfilename,'trained',{me,J,T,v,reg},getlablist(K),k,2); 170 170 % W = cnormc(W,K); 171 171 W = setname(W,'Kernel Support Vector Classifier (KSVC)');
Note: See TracChangeset
for help on using the changeset viewer.