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

Method C1

pattern/vector/__init__.py:1215–1218  ·  view source on GitHub ↗

Returns the unique features from all sets as a list of (hashable) frozensets.

(self, sets)

Source from the content-addressed store, hash-verified

1213 self._support = {}
1214
1215 def C1(self, sets):
1216 """ Returns the unique features from all sets as a list of (hashable) frozensets.
1217 """
1218 return [frozenset([v]) for v in set(chain(*sets))]
1219
1220 def Ck(self, sets):
1221 """ For the given sets of length k, returns combined candidate sets of length k+1.

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected