Skip to content

Commit

Permalink
fix logpq in phi_bank
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy43 committed Nov 14, 2023
1 parent 81c410f commit fae0105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit_test_sampling_pld.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _pld_sample_remove_only(sigma):
t_list = [1.1**x for x in range(2, 20)]
# Phi-function implementation
gm = GaussianMechanism(sigma, name='GM3', RDP_off=True, approxDP_off=True, phi_off=False)
phi_gm = lambda t: gm.log_phi_p(t)

# sampling ratio
gamma = 0.01
# direct compute the phi function of subsample gaussian for "removal only" neighboring relationship
Expand Down

0 comments on commit fae0105

Please sign in to comment.