Created
October 5, 2019 10:19
-
-
Save joelbarmettlerUZH/b65f139ef7d545ed7009ebaee75f5361 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
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