@BeforeClass public static void setUp() { Logger logger = NanoBench.getLogger(); logger.setUseParentHandlers(false); logger.setLevel(Level.INFO); logger.addHandler(new ConsoleHandler()); }
@Test public void testCompleteLinkage() { Dataset<? extends Instance> dataset = FakeDatasets.irisDataset(); for (AgglomerativeClustering alg : algorithms) { NanoBench.create() .cpuAndMemory() .measurements(2) .measure( alg.getName() + " complete link - " + dataset.getName(), new HclustBenchmark().completeLinkage(alg, dataset)); } }