Example #1
0
 def unsync_experts_data(self, expert_id: int):
     """ Reset global variables. """
     if len(self.training_data) > expert_id:
         _global_training_data.pop(f"{self.name}_{expert_id}", None)
         _global_training_labels.pop(f"{self.name}_{expert_id}", None)
         # _global_training_structures.pop(f"{self.name}_{expert_id}",None)
         _global_energy_labels.pop(f"{self.name}_{expert_id}", None)
Example #2
0
File: gp.py Project: mailhexu/flare
 def __del__(self):
     if self is None:
         return
     if self.name in _global_training_labels:
         return (
             _global_training_data.pop(self.name, None),
             _global_training_labels.pop(self.name, None),
         )
Example #3
0
 def __del__(self):
     _global_training_labels.pop(self.name, None)
     _global_training_data.pop(self.name, None)