Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sommerda committed Feb 3, 2021
1 parent 9350f97 commit 3e82a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/probabilitybuckets_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def create_bucket_distribution(self, delta_func, DP_type):

elif DP_type == 'pdp': # assuming delta_func describes probabilistic differential privacy
G = np.ones((self.number_of_buckets + 1, self.number_of_buckets + 1))
G = G[np.tril_indices(self.number_of_buckets + 1, -1)] = 0
G[np.tril_indices(self.number_of_buckets + 1, -1)] = 0

else:
raise NotImplementedError("DP_type '{}' not implemented.".format(DP_type))
Expand Down

0 comments on commit 3e82a05

Please sign in to comment.