Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def real_fizz_buzz(i):
- txt = ""
- if i % 3 == 0:
- txt += "fizz"
- if i % 5 == 0:
- txt += "buzz"
- return txt
- for i in range(len(X_test)):
- text = fizz_buzz_decode(pred[i])
- true_text = real_fizz_buzz(i + 1)
- print("{}: {} ({})".format(i + 1, text, "✔" if text == true_text else "x"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement