title: ValueError: Error when checking input: expected lstm_1_input to have 3 dimensions, but got array with shape (393613, 50)
body: <p>I have a error in Keras and I can't find the solution. I have searched the whole internet and I have still no answer ^^
  Here is my Code.</p>
  
  <pre><code>model = Sequential()
  model.add(LSTM(32, return_sequences=True, input_shape=X.values.shape))
  model.add(LSTM(32, return_sequences=True))
  model.add(LSTM(32))
  model.add(Dense(10, activation="softmax"))
  model.compile(loss="categorical_crossentropy", optimizer="adam", metrics=['accuracy'])
  </code></pre>
  
  <p>The error is the second line. It says "ValueError: Error when checking input: expected lstm_1_input to have 3 dimensions, but got array with shape (393613, 50)"
  The Shape of my Dataframe X is correct.
  And when I try to train the model the Error pops up</p>
  
  <pre><code>model.fit(X.values, Y.values, batch_size=200, epochs=10, validation_split=0.05)
  </code></pre>
  
  <p>I hope someone could help me :-)</p>
  
  <p>[EDIT]
  Btw. here is the model.summary()</p>
  
  <hr>
  
  <h1>Layer (type)                 Output Shape              Param #</h1>
  
  <p>lstm_1 (LSTM)                (None, 393613, 32)        10624     </p>
  
  <hr>
  
  <p>lstm_2 (LSTM)                (None, 393613, 32)        8320      </p>
  
  <hr>
  
  <p>lstm_3 (LSTM)                (None, 32)                8320      </p>
  
  <hr>
  
  <h1>dense_1 (Dense)              (None, 10)                330</h1>
  
  <p>Total params: 27,594
  Trainable params: 27,594
  Non-trainable params: 0</p>
  
  <hr>
  
  <p>Kind regards Niklas.</p>