title: Keras - model.predict(image)[0]
body: <p>I came across the statement below and wasn't sure of what <code>[0]</code> means:</p>
  
  <pre><code>model.predict(image)[0]
  </code></pre>
  
  <p>So, I did a print out for the above statement once <em>without</em> <code>[0]</code> and once with <code>[0]</code>, as follows:</p>
  
  <pre><code>print model.predict(image)
  
  [[ 0.99335432  0.00664574]]
  
  print model.predict(image)[0]
  
  [ 0.99335432  0.00664574]
  </code></pre>
  
  <p>Yes, I can see that the outer square brackets have been removed in the latter case, but still not sure what it means. Any ideas?</p>
  
  <p>Thanks.</p>