MATLAB File Help: prtClassCap/prtClassCap
prtClassCap/prtClassCap
  prtClassCap  Central Axis projection classifier
 
     CLASSIFIER = prtClassCap returns a Cap classifier
 
     CLASSIFIER = prtClassCap(PROPERTY1, VALUE1, ...) constructs a
     prtClassCap object CLASSIFIER with properties as specified by
     PROPERTY/VALUE pairs.
 
     A prtClassCap object inherits all properties from the abstract class
     prtClass. In addition is has the following properties:
 
     w                 -  Central axis projection weights, set during
                          training
     threshold         -  Decision threshold, set during training
 
     Cap classifiers are a prototypical "weak" classification algorithm
     that find application in multiple meta-algorithms.  A good
     explanation of Cap classifiers can be found in:
 
     Breiman, Leo (2001). "Random Forests". Machine Learning 45 (1): 
     5–32.
 
     Note that the output of the run method of a prtClassCap classifier
     includes the process of applying the learned threshold to the
     linear projection, so the outputs are discrete valued.
 
     A prtClassCap object inherits the TRAIN, RUN, CROSSVALIDATE and 
     KFOLDS methods from prtAction. It also inherits the PLOT method 
     from prtClass.
 
     Example:
 
      TestDataSet = prtDataGenUniModal;       % Create some test and
      TrainingDataSet = prtDataGenUniModal;   % training data
      classifier = prtClassCap;              % Create a classifier
      classifier = classifier.train(TrainingDataSet);    % Train
      classified = run(classifier, TestDataSet);         % Test
      percentCorr = prtScorePercentCorrect(classified,TestDataSet);
      subplot(2,1,1);
      classifier.plot;
      subplot(2,1,2);
      [pf,pd] = prtScoreRoc(classified,TestDataSet);
      h = plot(pf,pd,'linewidth',3);
      title('ROC'); xlabel('Pf'); ylabel('Pd');