@Override protected Instances process(Instances instances) throws Exception {
  if (!isFirstBatchDone()) {
    HashSet<DecisionTableHashKey> hs=new HashSet<DecisionTableHashKey>();
    Instances newInstances=new Instances(instances,instances.numInstances());
    for (    Instance inst : instances) {
      DecisionTableHashKey key=new DecisionTableHashKey(inst,instances.numAttributes(),true);
      if (hs.add(key)) {
        newInstances.add(inst);
      }
    }
    newInstances.compactify();
    return newInstances;
  }
  throw new Exception("The process method should never be called for subsequent batches.");
}

@ Override protected Instances process ( Instances instances ) throws Exception { if ( ! isFirstBatchDone ( ) ) { HashSet < DecisionTableHashKey > hs = new HashSet < DecisionTableHashKey > ( ) ; Instances newInstances = new Instances ( instances , instances . numInstances ( ) ) ; for ( Instance inst : instances ) { DecisionTableHashKey key = new DecisionTableHashKey ( inst , instances . numAttributes ( ) , true ) ; if ( hs . add ( key ) ) { newInstances . add ( inst ) ; } } newInstances . compactify ( ) ; return newInstances ; } throw new Exception ( "The process method should never be called for subsequent batches." ) ; }
processes the given data ( may change the provided dataset ) and returns the modified version . this method is called in batchfinished ( ) .
