What does Transpose really do❔

When I’m building a machine learning model, I find myself engaged in “numpy.ndarray.T” I would usually use this blindly, but this lack of knowledge increased my practice operating with issues that increased the occurrence of problems in my learning models.

Transpose of numpy array A

linear algebra, transpose is an operator that flips a matrix over its diagonal. For me that definition gives me a straight forward understanding of what a transpose does to a matrix. Essentially if given vector A with dimensions M x N where M is the rows and N is the columns. The transpose of that vector A would be N x M.

I encourage you to take a look at this video on Transpose from Khan Academy for more.



Ethical Hacker

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store