Browse Source

modify the initial_noise_multiplier of a dp example

pull/405/head
huangjiaqi 2 years ago
parent
commit
2eb709e9aa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/privacy/diff_privacy/lenet5_config.py

+ 1
- 1
examples/privacy/diff_privacy/lenet5_config.py View File

@@ -33,7 +33,7 @@ mnist_cfg = edict({
'dataset_sink_mode': False, # whether deliver all training data to device one time 'dataset_sink_mode': False, # whether deliver all training data to device one time
'micro_batches': 32, # the number of small batches split from an original batch 'micro_batches': 32, # the number of small batches split from an original batch
'norm_bound': 1.0, # the clip bound of the gradients of model's training parameters 'norm_bound': 1.0, # the clip bound of the gradients of model's training parameters
'initial_noise_multiplier': 1.0, # the initial multiplication coefficient of the noise added to training
'initial_noise_multiplier': 0.4, # the initial multiplication coefficient of the noise added to training
# parameters' gradients # parameters' gradients
'noise_mechanisms': 'Gaussian', # the method of adding noise in gradients while training 'noise_mechanisms': 'Gaussian', # the method of adding noise in gradients while training
'clip_mechanisms': 'Gaussian', # the method of adaptive clipping gradients while training 'clip_mechanisms': 'Gaussian', # the method of adaptive clipping gradients while training


Loading…
Cancel
Save