Browse Source

add comment in NoiseAdaGaussianRandom.

tags/v0.6.0-beta
zhenghuanhuan 5 years ago
parent
commit
51a2726b5f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      mindarmour/diff_privacy/mechanisms/mechanisms.py

+ 2
- 0
mindarmour/diff_privacy/mechanisms/mechanisms.py View File

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


Loading…
Cancel
Save