What does Transpose really do❔

Akil Hylton El
1 min readJun 10, 2018

--

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

In 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.

--

--

No responses yet