Skip to content

Instantly share code, notes, and snippets.

@eustin
Created June 8, 2020 03:58
Show Gist options
  • Save eustin/a08b01e3158c10246b7659260d37731c to your computer and use it in GitHub Desktop.
Save eustin/a08b01e3158c10246b7659260d37731c to your computer and use it in GitHub Desktop.
raw_relevance_grades = tf.constant([3.0, 1.0, 0.0], dtype=tf.float32)
true_prob_dist = tf.nn.softmax(raw_relevance_grades)
print(true_prob_dist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment