Skip to content

Instantly share code, notes, and snippets.

@eustin
Created June 8, 2020 03:57
Show Gist options
  • Save eustin/2000d16e00303822c5f4497fa27d7248 to your computer and use it in GitHub Desktop.
Save eustin/2000d16e00303822c5f4497fa27d7248 to your computer and use it in GitHub Desktop.
ordered_scores = np.array([scores_dict[x] for x in xlabs]).astype(np.float32)
predicted_prob_dist = tf.nn.softmax(ordered_scores)
print(predicted_prob_dist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment