Changeset 79 for distools/ksvc.m


Ignore:
Timestamp:
07/23/13 12:22:18 (11 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • distools/ksvc.m

    r10 r79  
    9595end
    9696if nargin < 1 | isempty(K),
    97   W = mapping(mfilename,{C,kc,r});
     97  W = prmapping(mfilename,{C,kc,r});
    9898  W = setname(W,'Kernel Support Vector Classifier (KSVC)');
    9999  return;
     
    115115
    116116% TRAIN THE CLASSIFIER
    117 if ~isa(C,'mapping')
     117if ~isa(C,'prmapping')
    118118  islabtype(K,'crisp');
    119119  isvaldset(K,1,2);      % Expect at least 1 object per class and 2 classes
     
    167167
    168168    % 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);
    170170    % W = cnormc(W,K);
    171171    W = setname(W,'Kernel Support Vector Classifier (KSVC)');
Note: See TracChangeset for help on using the changeset viewer.