- 博客(3)
- 收藏
- 关注
原创 numpy.pad的用法
numpy.pad的用法代码示例代码示例// An highlighted blockimport numpy as nparr1D = np.array([1, 1, 2, 2, 3, 4])'''不同的填充方法'''print 'constant: ' + str(np.pad(arr1D, (2, 3), 'constant'))print 'edge: ' + str(n...
2019-04-18 16:13:09
664
转载 关于Numpy中的shape()以及reshape()
shape 属性对于shape函数,官方文档是这么说明:the dimensions of the array. This is a tuple of integers indicating the size of the array in each dimension.直译:数组的维度。这是一个整数的元组,元组中的每一个元素对应着每一维度的大小(size)。再直译一点理解就是,若元组只有...
2019-03-07 09:55:11
604
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人