我删除了numpy数组的零,做了一些事情,并希望将它们插入到可视化的目的中。我确实有各节的索引,并尝试用numpy.insert和zip插入零,但是索引超出了界限,尽管我从低端开始。indices a = np.insert(a, ev[0], np.zeros(ev[1]-ev[0]))
>>> IndexError: index 13 is out of bounds for axis 0 with
但是,我将整个数据集上传到了Drive,并检查了索引-数据-标签的对应关系。在我的设置中没有不匹配的项目,我已经解决了该部分中的所有错误。IndexError: Caught IndexError in DataLoader worker process 0.possibly_batched_index] xs = label_data[:,0:8:2];
In