大家好!
我在尝试使用Keras下面的LSTM做深度学习,我的数据是这样的:X-Train:30000个数据,每个数据6个数值,所以我的X_train是(30000*6)
根据keras的说明文档,input shape应该是(samples,timesteps,input_dim)
所以我觉得我的input shape应该是:input_shape=(30000,1,6),但是运行后报错:
Input 0 is incompatible with layer lstm_6: expected ndim=3, found ndim=4
我觉得是input shape错了,改成(1,6)错误又变成了:
ValueError: Error when checking input: expected lstm_7_input to have 3 dimensions, but got array with shape (30000, 6)
改成(30000,6)错误提示一样
我该怎么设置input shape呢,多谢!