Skip to content

Commit

Permalink
chore: style
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariush Wahdany committed Feb 6, 2024
1 parent ff79eb8 commit 8307c90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dp_learning_ff/mechanisms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from autodp.autodp_core import Mechanism
from autodp.mechanism_zoo import GaussianMechanism, zCDP_Mechanism
from autodp.transformer_zoo import AmplificationBySampling, ComposeGaussian, Composition

from opacus.accountants.analysis import gdp

from .utils import binary_optimize
Expand Down Expand Up @@ -200,7 +199,9 @@ def obj(mu_total):
est_sampling_rate=est_sampling_rate,
).get_approxDP(delta)

mu_total = binary_optimize(obj, epsilon, min_open=True, verbose=verbose)
mu_total = binary_optimize(
obj, epsilon, min_open=True, strictly="leq", verbose=verbose
)
return cls(
share_projection=share_projection,
mu_total=mu_total,
Expand Down

0 comments on commit 8307c90

Please sign in to comment.