0

For example, a matrix X

>>> X
array([[ 0,  1,  2,  3,  4],
       [ 5, -1,  7,  8,  9]])

what is the meaning of >>> X[None,:]

array([[[ 0,  1,  2,  3,  4],
        [ 5, -1,  7,  8,  9]]])

So, it changes the dimension of the matrix respect to the None axis? Am I right? Thanks for any help.

Mozzie
  • 353
  • 2
  • 12

0 Answers0