Skip to content

Commit 74f8459

Browse files
Carole SudreCarole Sudre
authored andcommitted
Removing unused list_label in binary pairwise
1 parent 2456e34 commit 74f8459

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

MetricsReloaded/metrics/pairwise_measures.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def chance_agreement_probability(self):
161161
for f in self.list_values:
162162
prob_pred = len(np.where(self.pred == f)[0]) / np.size(self.pred)
163163
prob_ref = len(np.where(self.ref == f)[0]) / np.size(self.ref)
164+
print(f, prob_ref, prob_pred)
164165
chance += prob_pred * prob_ref
165166
return chance
166167

@@ -1011,15 +1012,15 @@ def com_pred(self):
10111012
com_pred = ndimage.center_of_mass(self.pred)
10121013
return com_pred
10131014

1014-
def list_labels(self):
1015-
"""
1016-
Creates the tuple with unique values of labels
1015+
# def list_labels(self):
1016+
# """
1017+
# Creates the tuple with unique values of labels
10171018

1018-
return list_labels
1019-
"""
1020-
if self.list_labels is None:
1021-
return ()
1022-
return tuple(np.unique(self.list_labels))
1019+
# return list_labels
1020+
# """
1021+
# if self.list_labels is None:
1022+
# return ()
1023+
# return tuple(np.unique(self.list_labels))
10231024

10241025
def absolute_volume_difference_ratio(self):
10251026
"""

0 commit comments

Comments
 (0)