def METHOD_NAME(self):
    """Clear the internal statistics to initial state."""
    if isinstance(self.name, str):
        self.num_inst = 0
        self.sum_metric = 0.0
    else:
        self.num_inst = [0] * len(self.name)
        self.sum_metric = [0.0] * len(self.name)