Machine learning LSTM中的洗牌

Machine learning LSTM中的洗牌,machine-learning,deep-learning,lstm,Machine Learning,Deep Learning,Lstm,我在机器学习中看到了一个源代码 这家伙使用了LSTM和洗牌选项 但我研究了LSTM不使用洗牌选项,因为平均值的时间中断 我问这个家伙为什么在LSTM中使用shuffle 但无法得到答案 有人告诉我可以吗 np.random.shuffle(train) x_train = train[:, :-1] x_train = np.reshape(x_train, (x_train.shape[0], x_train.shape[1], 1)) y_train = train[:, -1] x_t

我在机器学习中看到了一个源代码 这家伙使用了LSTM和洗牌选项 但我研究了LSTM不使用洗牌选项,因为平均值的时间中断 我问这个家伙为什么在LSTM中使用shuffle 但无法得到答案 有人告诉我可以吗

np.random.shuffle(train)

x_train = train[:, :-1]
x_train = np.reshape(x_train, (x_train.shape[0], x_train.shape[1], 1))
y_train = train[:, -1]

x_test = result[row:, :-1]
x_test = np.reshape(x_test, (x_test.shape[0], x_test.shape[1], 1))
y_test = result[row:, -1]

x_train.shape, x_test.shape