Start Python Machine Learning --numpy

 

a.ndim refers to several dimensional matrix, we are generally one and two dimensional, such figure is two dimensional, with [] enclosed a respective dimension

reshape change the structure dimension, oh this is very common

      

a.size # number of elements

                  

 

Guess you like

Origin www.cnblogs.com/ningxinjie/p/10987880.html