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