Classifier classifier = new MaxEntTrainer().train(trainingInstances);
logger.info("InfoGain:\n");
new InfoGain(trainingInstances).printByRank(System.out);
logger.info("pairwise training accuracy="
+ new Trial(classifier, trainingInstances).getAccuracy());
NeighborEvaluator neval = new PairwiseEvaluator(classifier, "YES",
new PairwiseEvaluator.Average(), true);
clusterer = new GreedyAgglomerativeByDensity(
training.get(0).getInstances().getPipe(), neval, 0.5, false,
random);
training = null;