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)
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)
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)