I am trying to make an autoencoder with Keras. I am having error as follows
ValueError: Error when checking input: expected lstm_1_input to have 3 dimensions, but got array with shape (480, 7)
These are the following data info
df.shape
=> (480, 7)
timesteps = 15
dim = 7
lH = LossHistory()
model = Sequential()
model.add(LSTM(50, input_shape=(timesteps,dim), return_sequences=True))
model.add(Dense(dim))
model.compile(loss='mae',optimizer = 'adam')
and here is the problem while using fit
model.fit(data,data, epochs=20, batch_size=100, validation_data=(data,data),verbose=0, shuffle=False, callbacks=[lH])