Skip to content

Instantly share code, notes, and snippets.

@joelbarmettlerUZH
Created October 5, 2019 10:19
Show Gist options
  • Save joelbarmettlerUZH/e9ca896afcec93b7914e959046fffe12 to your computer and use it in GitHub Desktop.
Save joelbarmettlerUZH/e9ca896afcec93b7914e959046fffe12 to your computer and use it in GitHub Desktop.
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
@emar-kar
Copy link

emar-kar commented Jun 6, 2023

What is wrong with the formatting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment