class_docstr: Multiplies your *base* `noise_multiplier` by the output of a `scheduler_function` given
  as input.
  Note: the base noise_multiplier is recorded as the noise_multiplier your optimizer
  had set at the very beginning. This means that the factors from the `scheduler_function`
  will *not* accumulate, unlike in ExponentialGradClip.
  If you want some exponential-like behavior, accumulation logic will have to be
  added in your `scheduler_function`.
  
  When last_epoch=-1, sets initial noise_multiplier as noise_multiplier.
class_docstr_tok: ["Multiplies","your","*","base","*","`","noise_multiplier","`","by","the","output","of","a","`","scheduler_function","`","given","as","input",".","Note",":","the","base","noise_multiplier","is","recorded","as","the","noise_multiplier","your","optimizer","had","set","at","the","very","beginning",".","This","means","that","the","factors","from","the","`","scheduler_function","`","will","*","not","*","accumulate",",","unlike","in","ExponentialGradClip",".","If","you","want","some","exponential-like","behavior",",","accumulation","logic","will","have","to","be","added","in","your","`","scheduler_function","`",".","When","last_epoch=-1",",","sets","initial","noise_multiplier","as","noise_multiplier","."]
docstr: Args:
      optimizer: Wrapped optimizer.
      noise_lambda: A function which computes a multiplicative factor given
          an integer epoch
      last_epoch: The index of last epoch. Default: -1.
docstr_tok: ["Args",":","optimizer",":","Wrapped","optimizer",".","noise_lambda",":","A","function","which","computes","a","multiplicative","factor","given","an","integer","epoch","last_epoch",":","The","index","of","last","epoch",".","Default",":","-1","."]
code: def __init__(
      self,
      optimizer: DPOptimizer,
      *,
      noise_lambda: Callable[[int], float],
      last_epoch: int = -1,
  ):
      """
  
      Args:
          optimizer: Wrapped optimizer.
          noise_lambda: A function which computes a multiplicative factor given
              an integer epoch
          last_epoch: The index of last epoch. Default: -1.
      """
      self.noise_lambda = noise_lambda
      self.base_noise_multiplier = optimizer.noise_multiplier
      super().__init__(optimizer, last_epoch=last_epoch)
  
file_path: opacus/opacus/schedulers/noise_scheduler.py
imports: from typing import Callable, Dict
  from opacus.optimizers import DPOptimizer
label_desc: Use image node_id 1 to create a new LambdaNoise object from inherited base classes: _NoiseScheduler with example: obj = LambdaNoise(optimizer)