MATLAB File Help: prtEvalPercentCorrect
prtEvalPercentCorrect
  prtEvalPercentCorrect    Calculate percent correct of a classification operation
  
    percentCorrect = prtEvalPercentCorrect(prtClassifier, prtDataSet)
    returns the percentage of correctly classified elements of prtDataSet
    when classifier by prtClassifier. prtDataSet must be a labeled,
    prtDataSetStandard object. prtClassifier must be a prtClass object.
 
    percentCorrect = prtEvalPercentCorrect(prtClassifier, prtDataSet,
    nFolds)  returns the percentage of correctly classified elements of
    prtDataSet when classifier by prtClassifier with K-fold
    cross-validation. prtDataSet must be a labeled, prtDataSetStandard
    object. prtClassifier must be a prtClass object. nFolds is the number
    of folds in the K-fold cross-validation.
 
    percentCorrect = prtEvalPercentCorrect(prtClassifier, prtDataSet,
    xValInds) same as above, but use crossValidation with specified indices
    instead of random folds.
 
    Example:
    dataSet = prtDataGenSpiral;
    classifier = prtClassDlrt;
    pc =  prtEvalPercentCorrect(classifier, dataSet)
See Also