class_docstr: Tracks a moving average of model parameters.
class_docstr_tok: ["Tracks","a","moving","average","of","model","parameters","."]
code: def __init__(self, parameters: Iterable[NamedParameter]) -> None:
      self._parameters = list(parameters)
      self._shadows = {
          name: parameter.data.clone()
          for name, parameter in self._parameters
      }
      self._backups = {
          name: parameter.data.clone()
          for name, parameter in self._parameters
      }
  
file_path: allennlp/allennlp/training/moving_average.py
imports: from typing import Iterable, Tuple, Optional, Any, Dict
  import torch
  from allennlp.common.registrable import Registrable
label_desc: Use image node_id 1 to create a new MovingAverage object from inherited base classes: Registrable with example: obj = MovingAverage(parameters)