def METHOD_NAME(self):
    if isinstance(self.name, str):
        if self.num_inst == 0:
            return (self.name, float('nan'))
        else:
            return (self.name, self.sum_metric / self.num_inst)
    else:
        names = ['%s' % (self.name[i]) for i in range(len(self.name))]
        values = [x / y if y != 0 else float('nan')
                  for x, y in zip(self.sum_metric, self.num_inst)]
        return (names, values)