MCPcopy 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
36def softmax(a):
37 expA = np.exp(a)
38 return expA / expA.sum(axis=1, keepdims=True)
39
40def forward(X, W1, b1, W2, b2):
41 Z = np.tanh(X.dot(W1) + b1)

Callers 1

forwardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected