Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/battlecode/battlecode-2018
/ softmax
Function
softmax
scripts/matchmaker.py:63–65 ·
view source on GitHub ↗
(x, T=1)
Source
from the content-addressed store, hash-verified
61
del QUEUED_MATCHES[game[0]]
62
63
def
softmax(x, T=1):
64
s = sum([exp(n/T)
for
n in x])
65
return
[exp(n/T)/s
for
n in x]
66
67
threading.Thread(target=update_loop).start()
68
Callers
1
matchmaker.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected