$ ./guess_the_languageAI & ML
AI & ML · medium · #27

Rounded to two decimals, what is probs?

logits = [2.0, 1.0, 0.0]
probs = softmax(logits)
  1. [0.67, 0.24, 0.09]
  2. [0.67, 0.33, 0.00]
  3. [0.50, 0.33, 0.17]
  4. [0.58, 0.29, 0.13]
e^2, e^1, e^0 = 7.39, 2.72, 1.00; dividing by their sum 11.11 gives 0.67, 0.24, 0.09.
Play AI & ML ▸