protected boolean[] testWRTZeroR(Classifier classifier,Evaluation evaluation,Instances train,Instances test) throws Exception {
  boolean[] result=new boolean[2];
  evaluation.evaluateModel(classifier,test);
  try {
    Classifier zeroR=new weka.classifiers.rules.ZeroR();
    zeroR.buildClassifier(train);
    Evaluation zeroREval=new Evaluation(train);
    zeroREval.evaluateModel(zeroR,test);
    result[0]=Utils.grOrEq(zeroREval.errorRate(),evaluation.errorRate());
  }
 catch (  Exception ex) {
    throw new Error("Problem determining ZeroR performance: " + ex.getMessage());
  }
  return result;
}

protected boolean [ ] testWRTZeroR ( Classifier classifier , Evaluation evaluation , Instances train , Instances test ) throws Exception { boolean [ ] result = new boolean [ 2 ] ; evaluation . evaluateModel ( classifier , test ) ; try { Classifier zeroR = new weka . classifiers . rules . ZeroR ( ) ; zeroR . buildClassifier ( train ) ; Evaluation zeroREval = new Evaluation ( train ) ; zeroREval . evaluateModel ( zeroR , test ) ; result [ 0 ] = Utils . grOrEq ( zeroREval . errorRate ( ) , evaluation . errorRate ( ) ) ; } catch ( Exception ex ) { throw new Error ( "Problem determining ZeroR performance: " + ex . getMessage ( ) ) ; } return result ; }
determine whether the scheme performs worse than zeror during testing
