'Get the current evaluation result.
Override the default behavior
Returns
name : str
Name of the metric.
value : float
Value of the evaluation.'

def get(self):

    if (self.num is None):
        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(self.num)]
        values = [((x / y) if (y != 0) else float('nan')) for (x, y) in zip(self.sum_metric, self.num_inst)]
        return (names, values)
