小编nab*_*abu的帖子

删除python数组中的最后一列

我正在尝试在 python 中构建一个基本的数字分类器,我有一个 3923 * 65 数组。我的数组中的每一行都是一个图像,显示时是一个从 0 到 9 的数字。3923 * 64 是我的数组的实际大小,最后一列是图像的实际数字。我已经有一个用于整个 3923 * 65 的数组,还有一个用于 3923 * 64 部分的数组。全阵列:

fullImageArray = np.zeros((len(myImageList),65), dtype = np.float64)
fullImageArray = np.array(myImageList)
Run Code Online (Sandbox Code Playgroud)

数字数组:

fullPlotArray = np.zeros((len(myImageList),64), dtype = np.float64)
fullPlotArray = np.array(fullImageArray)
fullPlotArray.resize(len(myImageList),64)
Run Code Online (Sandbox Code Playgroud)

如何制作仅包含最后一列的数组?

python numpy python-2.7

0
推荐指数
1
解决办法
5427
查看次数

标签 统计

numpy ×1

python ×1

python-2.7 ×1