Advertisement
Guest User

Untitled

a guest
May 24th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. for i in nn.output:
  2. print(i, end=" Resulted: ")
  3. if i[0] > i[1]:
  4. print("AB", end=" Expected: ")
  5. if (_y[259:][k][0] == 1):
  6. print("AB")
  7. correct += 1
  8. print("CORRECT")
  9. else:
  10. print("NO")
  11. print("WRONG")
  12. else:
  13. print("NO", end=" Expected: ")
  14. if (_y[259:][k][0] == 0):
  15. print("NO")
  16. correct += 1
  17. print("CORRECT")
  18. else:
  19. print("AB")
  20. print("WRONG")
  21. k += 1
  22. print("ACCURACY: ", end="")
  23. print(correct/(310-259))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement