code: def reset(self):
          
          self.num_inst = 0
          self.sum_metric = 0.0
          self.global_num_inst = 0
          self.global_sum_metric = 0.0
docs: Resets the internal evaluation result to initial state.