Changeset 79 for distools/discc.m
- Timestamp:
- 07/23/13 12:22:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
distools/discc.m
r10 r79 34 34 if nargin < 1 | isempty(d) 35 35 if isstr(par) % untrained classifier, par = 'loo' or 'all' 36 W = mapping('discc',par);36 W = prmapping('discc',par); 37 37 else % fixed classifier, par = knn 38 W = mapping('discc','fixed',par);38 W = prmapping('discc','fixed',par); 39 39 end 40 40 return 41 41 end 42 42 43 [nlab,lablist,m,k,c,p,featlist] = dataset(d);43 [nlab,lablist,m,k,c,p,featlist] = prdataset(d); 44 44 [clab,classlist] = renumlab(featlist); 45 45 c = size(classlist,1); … … 78 78 K = K+k; 79 79 end 80 w = +( dataset(s,2-(t==r))*loglc);81 W = mapping('discc',w,lablist,k,c,1);80 w = +(prdataset(s,2-(t==r))*loglc); 81 W = prmapping('discc',w,lablist,k,c,1); 82 82 elseif strcmp(par,'all') 83 83 n = m*k; … … 92 92 K = K+k; 93 93 end 94 w = +( dataset(s,2-(t==r))*loglc);95 W = mapping('discc',w,lablist,k,c,1);94 w = +(prdataset(s,2-(t==r))*loglc); 95 W = prmapping('discc',w,lablist,k,c,1); 96 96 else 97 97 error(['Unknown option ''' par '''']) … … 102 102 % testing for given mapping 103 103 104 if isa(par,' mapping')104 if isa(par,'prmapping') 105 105 w = +par; 106 106 W = d*w(1) + w(2);
Note: See TracChangeset
for help on using the changeset viewer.