@property
    def majority(self):
        d = sorted((v, k) for k, v in self._classes.items())
        return d and d[-1][1] or None
Yields the majority class (= most frequent class).
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/Classifier.majority