From 2fe51d2eeb21521c0f600b266256ed4ad51e6a15 Mon Sep 17 00:00:00 2001 From: Zheng Xu Date: Fri, 4 Feb 2022 07:31:35 -0800 Subject: [PATCH] Minor fix of tree aggregation accounting docstring. PiperOrigin-RevId: 426398939 --- .../privacy/analysis/tree_aggregation_accountant.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tensorflow_privacy/privacy/analysis/tree_aggregation_accountant.py b/tensorflow_privacy/privacy/analysis/tree_aggregation_accountant.py index 5b3325c..fa807e1 100644 --- a/tensorflow_privacy/privacy/analysis/tree_aggregation_accountant.py +++ b/tensorflow_privacy/privacy/analysis/tree_aggregation_accountant.py @@ -99,8 +99,8 @@ def compute_rdp_tree_restart( Args: noise_multiplier: A non-negative float representing the ratio of the - standard deviation of the Gaussian noise to the l2-sensitivity of the - function to which it is added, which is usually set in + standard deviation of the Gaussian noise to the l2-sensitivity of a single + contribution (a leaf node), which is usually set in `TreeCumulativeSumQuery` and `TreeResidualSumQuery` from `dp_query.tree_aggregation_query`. steps_list: A scalar or a list of non-negative intergers representing the @@ -292,8 +292,8 @@ def compute_rdp_single_tree( Args: noise_multiplier: A non-negative float representing the ratio of the - standard deviation of the Gaussian noise to the l2-sensitivity of the - function to which it is added, which is usually set in + standard deviation of the Gaussian noise to the l2-sensitivity of a single + contribution (a leaf node), which is usually set in `TreeCumulativeSumQuery` and `TreeResidualSumQuery` from `dp_query.tree_aggregation_query`. total_steps: Total number of steps (leaf nodes in tree aggregation). @@ -354,8 +354,8 @@ def compute_zcdp_single_tree( Args: noise_multiplier: A non-negative float representing the ratio of the - standard deviation of the Gaussian noise to the l2-sensitivity of the - function to which it is added, which is usually set in + standard deviation of the Gaussian noise to the l2-sensitivity of a single + contribution (a leaf node), which is usually set in `TreeCumulativeSumQuery` and `TreeResidualSumQuery` from `dp_query.tree_aggregation_query`. total_steps: Total number of steps (leaf nodes in tree aggregation).