Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ softmax
Function
softmax
ann_logistic_extra/ann_train.py:36–38 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
34
35
# make predictions
36
def
softmax(a):
37
expA = np.exp(a)
38
return
expA / expA.sum(axis=1, keepdims=True)
39
40
def
forward(X, W1, b1, W2, b2):
41
Z = np.tanh(X.dot(W1) + b1)
Callers
1
forward
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected