How to convert (n,) matrix to (1,n) matrix in python -
how convert (n,) matrix (1,n) numpy matrix in python
i tried using transpose makes (n,1) , not looking for
i guess you're referring numpy's ndarray.
can apply reshape
:
x = np.reshape(x, (1, n))
Comments
Post a Comment