Question about softmax
#3485
-
Beta Was this translation helpful? Give feedback.
Answered by
wsad1
Nov 12, 2021
Replies: 1 comment
-
Both the equations you pasted will yield the same output, as softmax(x) = softmax(x+c) where c is some constant. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
morgan-bc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both the equations you pasted will yield the same output, as softmax(x) = softmax(x+c) where c is some constant.
Now setting c to max(x) makes the softmax more stable by preventing underflow and overflow, read more here.