forked from 626_privacy/tensorflow_privacy
Fix heterogeneous spellings of "heterogeneous".
PiperOrigin-RevId: 393881235
This commit is contained in:
parent
54f1887b10
commit
3059fbae67
3 changed files with 6 additions and 6 deletions
|
@ -31,7 +31,7 @@ else:
|
||||||
|
|
||||||
# Analysis
|
# Analysis
|
||||||
from tensorflow_privacy.privacy.analysis.compute_dp_sgd_privacy_lib import compute_dp_sgd_privacy
|
from tensorflow_privacy.privacy.analysis.compute_dp_sgd_privacy_lib import compute_dp_sgd_privacy
|
||||||
from tensorflow_privacy.privacy.analysis.rdp_accountant import compute_heterogenous_rdp
|
from tensorflow_privacy.privacy.analysis.rdp_accountant import compute_heterogeneous_rdp
|
||||||
from tensorflow_privacy.privacy.analysis.rdp_accountant import compute_rdp
|
from tensorflow_privacy.privacy.analysis.rdp_accountant import compute_rdp
|
||||||
from tensorflow_privacy.privacy.analysis.rdp_accountant import get_privacy_spent
|
from tensorflow_privacy.privacy.analysis.rdp_accountant import get_privacy_spent
|
||||||
|
|
||||||
|
|
|
@ -540,8 +540,8 @@ def _compute_rdp_sample_without_replacement_int(q, sigma, alpha):
|
||||||
return log_a
|
return log_a
|
||||||
|
|
||||||
|
|
||||||
def compute_heterogenous_rdp(sampling_probabilities, noise_multipliers,
|
def compute_heterogeneous_rdp(sampling_probabilities, noise_multipliers,
|
||||||
steps_list, orders):
|
steps_list, orders):
|
||||||
"""Computes RDP of Heteregoneous Applications of Sampled Gaussian Mechanisms.
|
"""Computes RDP of Heteregoneous Applications of Sampled Gaussian Mechanisms.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|
|
@ -86,9 +86,9 @@ class TestGaussianMoments(tf.test.TestCase, parameterized.TestCase):
|
||||||
steps_list = [1, 1]
|
steps_list = [1, 1]
|
||||||
orders = 20
|
orders = 20
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
rdp_accountant.compute_heterogenous_rdp(sampling_probabilities,
|
rdp_accountant.compute_heterogeneous_rdp(sampling_probabilities,
|
||||||
noise_multipliers, steps_list,
|
noise_multipliers, steps_list,
|
||||||
orders), 0.1)
|
orders), 0.1)
|
||||||
|
|
||||||
def test_compute_rdp_no_data(self):
|
def test_compute_rdp_no_data(self):
|
||||||
# q = 0
|
# q = 0
|
||||||
|
|
Loading…
Reference in a new issue