深度学习
lollol233
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python3 reshape
A trick when you want to flatten a matrix X of shape (a,b,c,d) to a matrix X_flatten of shape (bcd, a) is to use:X_flatten = X.reshape(X.shape[0], -1).Treshape(行,列)可以根据指定的数值将数据转换为特定的行数和列数reshape(1,...原创 2019-07-14 21:49:35 · 310 阅读 · 0 评论 -
numpy.array 的shape属性理解
import numpy as np二维y = np.array([[1,2,3],[4,5,6]])print(y)[[1 2 3][4 5 6]]print(y.shape) # 展示行数,列数(2, 3)print(y.shape[0]) # 展示行数print(y.shape[1]) # 展示列数三维x = np.arr...转载 2019-07-10 21:14:42 · 1132 阅读 · 0 评论
分享