Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\ipykernel_launcher.py:47: DeprecationWarning: elementwise == comparison failed; this will raise an error in the future.
  2. ---------------------------------------------------------------------------
  3. AttributeError Traceback (most recent call last)
  4. <ipython-input-32-96352d590f17> in <module>()
  5. 1 #Performance before any optimization¶
  6. ----> 2 print_test_accuracy()
  7.  
  8. <ipython-input-31-6b5399d8c044> in print_test_accuracy(show_example_errors, show_confusion_matrix)
  9. 49 # Calculate the number of correctly classified images.
  10. 50 # When summing a boolean array, False means 0 and True means 1.
  11. ---> 51 correct_sum = correct.sum()
  12. 52
  13. 53 # Classification accuracy is the number of correctly classified
  14.  
  15. AttributeError: 'bool' object has no attribute 'sum'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement