-
-
Save sararob/18406619f40d2027379d10090bbcb473 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 movie_genres in results: | |
top_2 = movie_genres['probabilities'].argsort()[-2:][::-1] | |
for genre in top_2: | |
text_genre = encoder.classes_[genre] | |
print(text_genre + ': ' + str(round(movie_genres['probabilities'][genre] * 100, 2)) + '%') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment