Exemplo n.º 1
0
 def test_features(self):
     # Assert unique list of vector keys.
     v = vector.features(vectors=[{"cat":1}, {"dog":1}])
     self.assertEqual(sorted(v), ["cat", "dog"])
     print("pattern.vector.features()")
Exemplo n.º 2
0
 def test_features(self):
     # Assert unique list of vector keys.
     v = vector.features(vectors=[{"cat": 1}, {"dog": 1}])
     self.assertEqual(sorted(v), ["cat", "dog"])
     print "pattern.vector.features()"