Skip to content

Instantly share code, notes, and snippets.

@joelbarmettlerUZH
Created October 5, 2019 10:19
Show Gist options
  • Save joelbarmettlerUZH/b65f139ef7d545ed7009ebaee75f5361 to your computer and use it in GitHub Desktop.
Save joelbarmettlerUZH/b65f139ef7d545ed7009ebaee75f5361 to your computer and use it in GitHub Desktop.
max_confidence = sorted(confidence_dict.values(), reverse=True)
for key, value in confidence_dict.items():
if value == max_confidence[0]:
return key, min(round(((1.0/max_confidence[0])*max_confidence[1])*100,2), 100.00)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment