title: Why my keras code doesn't show the accuracy value?
body: <p>When I train the model,I can't get my accuracy </p>
  
  <pre><code>model.fit(train, train_label,
            batch_size=64,
            epochs=12,
            verbose=1,
            validation_data=(test, test_label))
  </code></pre>
  
  <p>when I train the data,it shows like that:</p>
  
  <pre><code>Epoch 1/12
  8000/8000 [==============================] - 166s 21ms/step - loss: 0.4743 - val_loss: 0.2727
  </code></pre>
  
  <p>It shows the number of loss, but no accuracy.</p>
  
  <p>When I evaluate,</p>
  
  <pre><code>score = model.evaluate(test, test_label, verbose=0)
  print('Test loss:', score[0])
  print('Test accuracy:', score[1])
  </code></pre>
  
  <p>it tells me that:</p>
  
  <pre><code> IndexError: invalid index to scalar variable.
  </code></pre>
  
  <p>I don't know why the score is a scalar variable.</p>
  
  <p>How can I get my accuracy?</p>