Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 3
0
 def test_RANK_Kendall_load_ground_truth(self):
     kendall = KendallTau()
     kendall.load_ground_truth(self.GT_DATA)
     assert_equal(len(kendall.get_ground_truth()), len(self.GT_DATA))
Exemplo n.º 4
0
 def test_RANK_Kendall_load_ground_truth(self):
     kendall = KendallTau()
     kendall.load_ground_truth(self.GT_DATA)
     assert_equal(len(kendall.get_ground_truth()), len(self.GT_DATA))