@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()))
when a model is saved clear the cache on the query
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/Classifier.weighted_random_baseline--crossover with--dataset/ETHPy150Open jamiecurle/django-omblog/omblog/listeners.py/clear_cached_posts