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

c# - Update a combobox from a presenter (MVP) -

android - Unable to generate FCM token from dynamically instantiated Firebase -

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