Skip to content

Commit 81a28af

Browse files
committed
add the support of epsilon=np.inf
1 parent 0368fa2 commit 81a28af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pe/dp/gaussian.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def get_noise_multiplier(
8686
:type max_epsilon: float, optional
8787
"""
8888

89+
if epsilon == np.inf:
90+
return 0.0
91+
8992
def objective(x):
9093
return (
9194
compute_epsilon(

0 commit comments

Comments
 (0)