title: How to build a Keras model with multidimensional input and output?
body: <p>I am building a neural network to produce songs. I have one file which has all notes from one song and one line corresponds to one note:  </p>
  
  <pre><code>0 0 0.05511 0.78740
  0 0 0.07874 0.50393
  0 0 0.71653 1
  0 0 0.50393 0
  .. .. .. ..
  </code></pre>
  
  <p>I want to give <strong>10 first notes</strong> to the neural network and I want it to give the <strong>next note</strong>, as the output, which has to be played after those 10 notes.  </p>
  
  <p>However I don't know how to build the first and the last layers (Dense, LSTM...) because I have:</p>
  
  <ol>
  <li>an <strong>input of 10x4 dimension</strong> (4 columns and 10 lines).</li>
  <li>an <strong>output of 1x4 dimension</strong> (1 line and 4 columns). </li>
  </ol>
  
  <p>This is the beginning of my code (which doesn't read correctly my data):</p>
  
  <pre><code>model = Sequential()
  model.add(Dense(10, activation='relu',input_shape = (10,4)))
  model.add(Dense(4, activation='relu'))
  </code></pre>
  
  <p>Thank you for your help.</p>