title: Reshape Keras Input for LSTM
body: <p>I have two ndarrays, inputs and results, both consisting of multiple arrays looking like this:</p>
  
  <pre><code>inputs = [
    [[1,2],[2,2],[3,2]],
    [[2,1],[1,2],[2,3]],
    [[2,2],[1,1],[3,3]],
    ...
  ]
  results = [
    [3,4,5],
    [3,3,5],
    [4,2,6],
    ...
  ]
  </code></pre>
  
  <p>I managed to split them up into train and test arrays, where train contains 66% of the arrays and test the other 33%. Now I'd like to reshape them for further use in my LSTM but my script fails when inputting them into np.reshape() function.</p>
  
  <pre><code>split = int(round(0.66 * results.shape[0]))
  train_results = results[:split, :]
  train_inputs = inputs[:split, :]
  test_results = results[split:, :]
  test_inputs = inputs[split:, :]
  X_train = np.reshape(train_inputs, (train_inputs.shape[0], train_inputs.shape[1], 1))
  X_test = np.reshape(test_inputs, (test_inputs.shape[0], test_inputs.shape[1], 1))
  </code></pre>
  
  <p>Please tell me how to use np.reshape() correctly in this case.</p>
  
  <p>Basically I am loosely following this tutorial: <a href="https://github.com/Vict0rSch/deep_learning/tree/master/keras/recurrent" rel="noreferrer">https://github.com/Vict0rSch/deep_learning/tree/master/keras/recurrent</a></p>