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

Method test_features

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

Source from the content-addressed store, hash-verified

712 random.seed()
713
714 def test_features(self):
715 # Assert unique list of vector keys.
716 v = vector.features(vectors=[{"cat":1}, {"dog":1}])
717 self.assertEqual(sorted(v), ["cat", "dog"])
718 print "pattern.vector.features()"
719
720 def test_mean(self):
721 # Assert iterator mean.

Callers

nothing calls this directly

Calls 1

featuresMethod · 0.45

Tested by

no test coverage detected