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