From 51a2726b5fe45a67adae826910d74a5ff0b9dde2 Mon Sep 17 00:00:00 2001 From: zhenghuanhuan Date: Wed, 22 Jul 2020 14:46:38 +0800 Subject: [PATCH] add comment in NoiseAdaGaussianRandom. --- mindarmour/diff_privacy/mechanisms/mechanisms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mindarmour/diff_privacy/mechanisms/mechanisms.py b/mindarmour/diff_privacy/mechanisms/mechanisms.py index 088fb89..0aabcd4 100644 --- a/mindarmour/diff_privacy/mechanisms/mechanisms.py +++ b/mindarmour/diff_privacy/mechanisms/mechanisms.py @@ -225,6 +225,8 @@ class NoiseAdaGaussianRandom(NoiseGaussianRandom): """ Adaptive Gaussian noise generated mechanism. Noise would be decayed with training. Decay mode could be 'Time' mode, 'Step' mode, 'Exp' mode. + `self._noise_multiplier` will be update during the model.train, using + _MechanismsParamsUpdater. Args: norm_bound(float): Clipping bound for the l2 norm of the gradients. -- GitLab