def test_auc_tied_ranks(self): auc = AUC() assert auc.get_ranks([0.1, 0.8, 0.4, 0.5, 0.4]) == [1.0, 5.0, 2.5, 4.0, 2.5]
def test_auc_unique_ranks(self): auc = AUC() assert auc.get_ranks([0.1, 0.8, 0.4, 0.5]) == [1.0, 4.0, 2.0, 3.0]