Return current value for the metric

def value(self):
        """ Return current value for the metric """
        if self.buffer:
            return np.quantile(self.buffer, self.quantile)
        else:
            return 0.0