Fix heterogeneous spellings of "heterogeneous".

PiperOrigin-RevId: 393881235
This commit is contained in:
Steve Chien 2021-08-30 16:45:40 -07:00 committed by A. Unique TensorFlower
parent 54f1887b10
commit 3059fbae67
3 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -540,7 +540,7 @@ def _compute_rdp_sample_without_replacement_int(q, sigma, alpha):
return log_a
def compute_heterogenous_rdp(sampling_probabilities, noise_multipliers,
def compute_heterogeneous_rdp(sampling_probabilities, noise_multipliers,
steps_list, orders):
"""Computes RDP of Heteregoneous Applications of Sampled Gaussian Mechanisms.

View file

@ -86,7 +86,7 @@ class TestGaussianMoments(tf.test.TestCase, parameterized.TestCase):
steps_list = [1, 1]
orders = 20
self.assertEqual(
rdp_accountant.compute_heterogenous_rdp(sampling_probabilities,
rdp_accountant.compute_heterogeneous_rdp(sampling_probabilities,
noise_multipliers, steps_list,
orders), 0.1)