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

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -