Skip to content

Commit 89719c6

Browse files
committed
feat: add re-identification metric
1 parent b250032 commit 89719c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycanon/utility/_reidentification_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ def average_rir(
3434
:type quasi_ident: list of strings
3535
"""
3636
equiv_class = aux_anonymity.get_equiv_class(data_anon, quasi_ident)
37-
avg_rir = np.mean([1/len(ec) for ec in equiv_class])
37+
avg_rir = np.mean([1 / len(ec) for ec in equiv_class])
3838
return avg_rir

0 commit comments

Comments
 (0)