MCPcopy Create free account
hub / github.com/MichalDanielDobrzanski/DeepLearningPython / guess_digit

Function guess_digit

mnist_average_darkness.py:54–61  ·  view source on GitHub ↗

Return the digit whose average darkness in the training data is closest to the darkness of ``image``. Note that ``avgs`` is assumed to be a defaultdict whose keys are 0...9, and whose values are the corresponding average darknesses across the training data.

(image, avgs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected