# 转numpy数组,打乱顺序
dataSet = np.array(dataSet).reshape(-1, 300)
lableSet = np.array(lableSet).reshape(-1, 1)
train_ds = np.hstack((dataSet, lableSet))
np.random.shuffle(train_ds)
# 数据集及其标签集
X = train_ds.reshape(-1, 300, 1)
Y = train_ds
为什么这样就会出现
把
X = train_ds.reshape(-1, 300, 1)
Y = train_ds
改成
X = train_ds[:, 300].reshape(-1, 300, 1)
Y = train_ds[:, 300]
就能运行出来了呢?那个[:, 300]是什么意思,看不懂