We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2678db commit 957dbfbCopy full SHA for 957dbfb
art/metrics/privacy/membership_leakage.py
@@ -85,7 +85,7 @@ def PDTP( # pylint: disable=C0103
85
# divide into 100 bins and return center of bin
86
bins = np.array(np.arange(0.0, 1.01, 0.01).round(decimals=2))
87
pred_bin_indexes = np.digitize(pred, bins)
88
- pred_bin_indexes[pred_bin_indexes==101] = 100
+ pred_bin_indexes[pred_bin_indexes == 101] = 100
89
pred_bin = bins[pred_bin_indexes] - 0.005
90
91
if not indexes:
0 commit comments