MCPcopy Index your code
hub / github.com/clips/pattern / minority

Method minority

pattern/vector/__init__.py:1716–1720  ·  view source on GitHub ↗

Yields the minority class (= least frequent class).

(self)

Source from the content-addressed store, hash-verified

1714
1715 @property
1716 def minority(self):
1717 """ Yields the minority class (= least frequent class).
1718 """
1719 d = sorted((v, k) for k, v in self._classes.iteritems())
1720 return d and d[0][1] or None
1721
1722 @property
1723 def baseline(self):

Callers

nothing calls this directly

Calls 1

iteritemsMethod · 0.80

Tested by

no test coverage detected