Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prediction = []
- for i in test_labels:
- for item in my_labels:
- if item == int(i):
- prediction.append("true")
- else:
- prediction.append("false")
- print prediction
- prediction = []
- for i in range(len(test_labels)):
- if test_labels[i] == my_labels[i]:
- prediction.append("true")
- else:
- prediction.append("false")
- prediction = []
- for i in range(0, len(test_labels)):
- if my_labels[i] == test_labels[i]:
- prediction.append("true")
- else:
- prediction.append("false")
- print prediction
- prediction = []
- for x, y in zip(test_labels, my_labels):
- if x == y:
- prediction.append("true")
- else:
- prediction.append("false")
- print(prediction)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement