예제 #1
0
 def test_RANK_Kendall_diff_elems(self):
     TEST_DECISION = ['class', 'invented', 'baro', 'instru']
     GT_DECISION = ['classical', 'instrumental', 'piano', 'baroque']
     kendall = KendallTau()
     kendall.load_ground_truth(self.GT_DECISION)
     kendall.load_test(self.TEST_DECISION)
     assert_raises(ValueError, kendall.compute) #Different elements
예제 #2
0
 def test_RANK_Kendall_diff_elems(self):
     TEST_DECISION = ['class', 'invented', 'baro', 'instru']
     GT_DECISION = ['classical', 'instrumental', 'piano', 'baroque']
     kendall = KendallTau()
     kendall.load_ground_truth(self.GT_DECISION)
     kendall.load_test(self.TEST_DECISION)
     assert_raises(ValueError, kendall.compute)  #Different elements
예제 #3
0
 def test_RANK_Kendall_load_test(self):
     kendall = KendallTau()
     kendall.load_test(self.TEST_DATA)
     assert_equal(len(kendall.get_test()), len(self.TEST_DATA))
예제 #4
0
 def test_RANK_Kendall_load_test(self):
     kendall = KendallTau()
     kendall.load_test(self.TEST_DATA)
     assert_equal(len(kendall.get_test()), len(self.TEST_DATA))