Beispiel #1
0
 def test_py_vq2(self):
     initc = np.concatenate(([[X[0]], [X[1]], [X[2]]]))
     for tp in np.array, np.matrix:
         label1 = py_vq2(tp(X), tp(initc))[0]
         assert_array_equal(label1, LABEL1)
Beispiel #2
0
 def test_py_vq2(self):
     initc = np.concatenate(([[X[0]], [X[1]], [X[2]]]))
     code = initc.copy()
     label1 = py_vq2(X, initc)[0]
     assert_array_equal(label1, LABEL1)
Beispiel #3
0
 def test_py_vq2(self):
     initc = np.concatenate(([[X[0]], [X[1]], [X[2]]]))
     label1 = py_vq2(X, initc)[0]
     assert_array_equal(label1, LABEL1)
Beispiel #4
0
 def test_py_vq2(self):
     initc = np.concatenate(([[X[0]], [X[1]], [X[2]]]))
     for tp in np.array, np.matrix:
         label1 = py_vq2(tp(X), tp(initc))[0]
         assert_array_equal(label1, LABEL1)