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
|
||||
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 get_privacy_spent
|
||||
|
||||
|
|
|
@ -540,8 +540,8 @@ def _compute_rdp_sample_without_replacement_int(q, sigma, alpha):
|
|||
return log_a
|
||||
|
||||
|
||||
def compute_heterogenous_rdp(sampling_probabilities, noise_multipliers,
|
||||
steps_list, orders):
|
||||
def compute_heterogeneous_rdp(sampling_probabilities, noise_multipliers,
|
||||
steps_list, orders):
|
||||
"""Computes RDP of Heteregoneous Applications of Sampled Gaussian Mechanisms.
|
||||
|
||||
Args:
|
||||
|
|
|
@ -86,9 +86,9 @@ class TestGaussianMoments(tf.test.TestCase, parameterized.TestCase):
|
|||
steps_list = [1, 1]
|
||||
orders = 20
|
||||
self.assertEqual(
|
||||
rdp_accountant.compute_heterogenous_rdp(sampling_probabilities,
|
||||
noise_multipliers, steps_list,
|
||||
orders), 0.1)
|
||||
rdp_accountant.compute_heterogeneous_rdp(sampling_probabilities,
|
||||
noise_multipliers, steps_list,
|
||||
orders), 0.1)
|
||||
|
||||
def test_compute_rdp_no_data(self):
|
||||
# q = 0
|
||||
|
|
Loading…
Reference in a new issue