Skip to content

Instantly share code, notes, and snippets.

@eustin
Created June 8, 2020 03:48
Show Gist options
  • Save eustin/bd9a0eabd2adae6db6ce0bbaf2e689bc to your computer and use it in GitHub Desktop.
Save eustin/bd9a0eabd2adae6db6ce0bbaf2e689bc to your computer and use it in GitHub Desktop.
first_term_numerator = np.exp(score_obj_pos_1)
first_term_denominator = np.exp(score_obj_pos_1) + np.exp(score_obj_pos_2) + np.exp(score_obj_pos_3)
first_term = first_term_numerator / first_term_denominator
print(f"first term is {first_term}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment