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)
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), )
def __del__(self): _global_training_labels.pop(self.name, None) _global_training_data.pop(self.name, None)