Created
October 5, 2019 10:19
-
-
Save joelbarmettlerUZH/e9ca896afcec93b7914e959046fffe12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in range(10): | |
confidence_dict[i] = 0 | |
for number in range(len(self._database.keys())): | |
for image in self._database[number]: | |
for column in range(len(image)): | |
for pixel in range(len(image[column])): | |
if image[column][pixel] == test_image[column][pixel] == 1: | |
confidence_dict[number] += 2 | |
if image[column][pixel] == test_image[column][pixel] == 0: | |
continue | |
confidence_dict[number] -= 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is wrong with the formatting?