设置
timesteps = 1(因为我想要每个实例一个时间步长),并将X_train和X_test重塑为:
import numpy as npX_train = np.reshape(X_train, (X_train.shape[0], 1, X_train.shape[1]))X_test = np.reshape(X_test, (X_test.shape[0], 1, X_test.shape[1]))
这工作了!
欢迎分享,转载请注明来源:内存溢出
设置
timesteps = 1(因为我想要每个实例一个时间步长),并将X_train和X_test重塑为:
import numpy as npX_train = np.reshape(X_train, (X_train.shape[0], 1, X_train.shape[1]))X_test = np.reshape(X_test, (X_test.shape[0], 1, X_test.shape[1]))
这工作了!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)