/** Test of score method, of class NMI. */ @Test public void testScore_Clustering_Dataset() throws ScoreException { measure(FakeClustering.iris(), 1.0); double score = measure(irisWrong, 0.6545182434318744); double score2 = measure(FakeClustering.irisWrong(), irisCorrect, 0.06793702240876041); assertTrue(score2 < score); }
/** Test of score method, of class NMI. */ @Test public void testScore_Clustering_Clustering() throws ScoreException { // this is fixed clustering which correspods to true classes in dataset measure(FakeClustering.iris(), FakeClustering.iris(), 1.0); double score = measure(irisWrong, irisCorrect, 0.6496820278112178); double score2 = measure(FakeClustering.irisWrong(), irisCorrect, 0.06793702240876041); assertTrue(score2 < score); }