title: What is the difference between the predict and predict_on_batch methods of a Keras model?
body: <p>According to the keras <a href="https://keras.io/models/sequential/" rel="noreferrer">documentation</a>:</p>
  
  <pre><code>predict_on_batch(self, x)
  Returns predictions for a single batch of samples.
  </code></pre>
  
  <p>However, there does not seem to be any difference with the standard <code>predict</code> method when called on a batch, whether it being with one or multiple elements.</p>
  
  <pre><code>model.predict_on_batch(np.zeros((n, d_in)))
  </code></pre>
  
  <p>is the same as </p>
  
  <pre><code>model.predict(np.zeros((n, d_in)))
  </code></pre>
  
  <p>(a <code>numpy.ndarray</code> of shape <code>(n, d_out</code>)</p>