MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / sigmoid

Function sigmoid

ann_class/forwardprop.py:39–40  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

37b2 = np.random.randn(K)
38
39def sigmoid(a):
40 return 1 / (1 + np.exp(-a))
41
42def forward(X, W1, b1, W2, b2):
43 Z = sigmoid(X.dot(W1) + b1) # sigmoid

Callers 1

forwardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected