title: Why isn't the Python shape matching what Keras is expecting?
body: <p>In my code, I have: <code>self._model.predict(next_state)</code></p>
  
  <p>When I <code>print(next_state.shape)</code>, I get <code>(14,)</code></p>
  
  <p>But when I run my code, I get an error:</p>
  
  <pre><code>ValueError: Error when checking input: expected dense_4_input to have shape (14,) but got array with shape (1,)
  </code></pre>
  
  <p><code>model.summary</code> is:</p>
  
  <pre><code>_________________________________________________________________
  Layer (type)                 Output Shape              Param #   
  =================================================================
  dense_4 (Dense)              (None, 24)                360       
  _________________________________________________________________
  dense_5 (Dense)              (None, 24)                600       
  _________________________________________________________________
  dense_6 (Dense)              (None, 4)                 100       
  =================================================================
  Total params: 1,060
  Trainable params: 1,060
  Non-trainable params: 0
  _________________________________________________________________
  None
  </code></pre>