smart022 / articles

articles_backup
MIT License
2 stars 0 forks source link

All about Numpy #8

Open smart022 opened 5 years ago

smart022 commented 5 years ago

what does -1 mean in numpy reshape Difference between numpy.array shape (R, 1) and (R,)

smart022 commented 5 years ago

useful tool functions

延展将一个array 复制多次展成给定形式

np.tile(mat,[n,m])

堆叠

vstack([a,b]) = [a, b] hstack([a,b]) = [ a, b ]

连接

concatenate((a,b,c),axis=x)