title: Keras: how to get predicted labels for more than two classes
body: <p>I implemented an image classifier in Keras, using the TensorFlow backend. With a dataset with two output classes, I checked the predicted labels as follows:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>if  result[0][0] == 1:
      prediction ='adathodai'
  else:
      prediction ='thamarathtai'</code></pre>
  </div>
  </div>
  </p>
  
  <p>Full code link:
  <a href="https://github.com/kajasumanie/medical-plant-classification" rel="nofollow noreferrer">here</a></p>
  
  <p>With three classes, I get <code>[[0. 0. 1.]]</code> as a result output. How can I check the predicted labels for more than two classes in if else format?</p>