'Yields the weighted random baseline:
accuracy with classes predicted randomly according to their distribution.'

@property
def weighted_random_baseline(self):

    n = (float(sum(self.distribution.values())) or 1)
    return sum(map((lambda x: ((x / n) ** 2)), self.distribution.values()))
