protected boolean[] canHandleNClasses(AttrTypes attrTypes,int numClasses){
  print("more than two class problems");
  printAttributeSummary(attrTypes,Attribute.NOMINAL);
  print("...");
  ArrayList<String> accepts=new ArrayList<String>();
  accepts.add("number");
  accepts.add("class");
  int numTrain=getNumInstances(), numTest=getNumInstances(), missingLevel=0;
  boolean attributeMissing=false, classMissing=false;
  int numAttr=1, attrIndex=0;
  return runBasicTest(attrTypes,numAttr,attrIndex,Attribute.NOMINAL,missingLevel,attributeMissing,classMissing,numTrain,numTest,numClasses,accepts);
}

protected boolean [ ] canHandleNClasses ( AttrTypes attrTypes , int numClasses ) { print ( "more than two class problems" ) ; printAttributeSummary ( attrTypes , Attribute . NOMINAL ) ; print ( "..." ) ; ArrayList < String > accepts = new ArrayList < String > ( ) ; accepts . add ( "number" ) ; accepts . add ( "class" ) ; int numTrain = getNumInstances ( ) , numTest = getNumInstances ( ) , missingLevel = 0 ; boolean attributeMissing = false , classMissing = false ; int numAttr = 1 , attrIndex = 0 ; return runBasicTest ( attrTypes , numAttr , attrIndex , Attribute . NOMINAL , missingLevel , attributeMissing , classMissing , numTrain , numTest , numClasses , accepts ) ; }
checks whether nominal schemes can handle more than two classes . if a scheme is only designed for two - class problems it should throw an appropriate exception for multi - class problems .
