I have a (200, 1) matrix, and I need to convert it to (200,)
y = np.matrix(np.append(np.zeros(200), np.ones(200))).T
The shape of y is (200,1)
I tried flattening the matrix:
c = y.flatten()
and I got a shape of (1,200)
Then I tried accessing the first element of the matrix,
c[0].shape
and I still get shape (1, 200)
How can I convert the original matrix into (200,)