MATLAB File Help: prtDataInterfaceCategoricalTargets
prtDataInterfaceCategoricalTargets
  prtDataInterfaceCategoricalTargets
   Super class for data sets with discrete number of possible labels.
 
   Handles all logic involving classn names, class indices, etc.,
 
   Also enables use of NAN as unlabeled data; use
      hasUnlabeled
      retainUnlabeled
      removeUnlabeled
      retainLabeled(obj)
      removeLabeled(obj)
 
   to handle unlabeled observations.
 
   Note: NAN labels do not count towards the nClasses and will
   not appear in uniqueClasses.  It is not possible to set the name of
   the class corresponding to NAN.
Class Details
Sealed false
Construct on load false
Constructor Summary
prtDataInterfaceCategoricalTargets  
Property Summary
classNames  
hasUnlabeled True if any of the labels are nan 
isBinary True if the number of classes = 2 
isMary True if the number of classes > 2 
isUnary True if the number of classes = 1 
isZeroOne True if the uniqueClasses are 0 and 
nClasses  
nObservationsByClass histogram of samples x class 
uniqueClasses  
Method Summary
  bootstrapByClass  
  catClasses self = catClasses(self,ds1,ds2,...) 
  classNamesToClassInd classInds = classNamesToClassInd(dataSet,classNames) 
  getBinaryTargetsAsZeroOne Return the target vector from a 
  getClassNames cn = getClassNames(self,indices) 
  getClassNamesByClassInd  
  getDataByClass Return the Data by class 
  getDataByClassInd  
  getDataUnlabeled  
  getObservationsByClass  
  getObservationsByClassInd  
  getObservationsUnlabeled  
  getTargetsAsBinaryMatrix binaryMatTargets Return the targets as a binary matrix 
  getTargetsClassInd getTargetsClassIndex Return the targets by class index 
  getUniqueClasses  
  numClasses  
  removeClasses remove observations corresponding to 
  removeClassesByInd removeClasses remove observations corresponding to 
  removeLabeled  
  removeUnlabeled  
  retainClasses retain observations corresponding to specified 
  retainClassesByInd retain observations corresponding to 
  retainLabeled  
  retainUnlabeled  
  setClassNames ds = ds.setClassNames({'fasdf','asdf','asdfdsfdsf'}); 
  summarize  
Abstract   getTargets prtDataInterfaceCategoricalTargets needs these in order to be able 
Abstract   retainObservations