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

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -