Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants