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

Method test_frequent_concept_sets

test/test_vector.py:441–445  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

439 print "pattern.vector.Document.tfidf()"
440
441 def test_frequent_concept_sets(self):
442 # Assert Apriori algorithm.
443 v = self.model.frequent(threshold=0.5)
444 self.assertEqual(sorted(v.keys()), [frozenset(["dogs"]), frozenset(["cats"])])
445 print "pattern.vector.Model.frequent()"
446
447 def test_cosine_similarity(self):
448 # Assert document cosine similarity.

Callers

nothing calls this directly

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected