/
concept-collection
/
walnuts-interactive
Jump to
/
Appearance
Match my system
Paper
GitHub
Slate
Midnight
Terminal
Sign in
concept-collection
/
walnuts-interactive
Code
Commits
Issues
0
Pull requests
0
Actions
Branches
1
Tags
0
Site
85d0056
Branches
main
walnuts-interactive
/
helpers
/
log_softmax.m
4 lines · 131 B
Code
Blame
History
cccc996
Use Nawaf Bou-Rabee's reference WALNUTS implementation
Jeremy Magland
1 month ago
1
function s = log_softmax(x)
2
%LOG_SOFTMAX x - logsumexp(x); exp(log_softmax(x)) is a probability vector.
3
s = x - logsumexp(x);
4
end
↑
↓
move
↵
open
esc
close