          self.active = model.training_opts.get("pingpong", False)
          self.model = model
          self.sides = sides
          self.side = sorted(sides)[0]
          self.loss = {side: dict() for side in sides}
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def switch(self):
          """ Switch pingpong side """
          if not self.active:
 
</s> remove                   for side in sorted(list(loss.keys()))]
 </s> add                   for side in sorted(loss.keys())]
        self.loss = {side: [0] for side in sides}
          self.active = model.training_opts.get("pingpong", False)
          self.model = model
          self.sides = sides
          self.side = sorted(sides)[0]
        self.loss = {side: [0] for side in sides}
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def switch(self):
          """ Switch pingpong side """
          if not self.active:
keep keep keep keep replace keep keep keep keep keep
 Bugfixes: PingPong Training

Print loss correctly for PingPong Training
Don't load Analysis stats for PingPong Training 
plugins/train/trainer/_base.py