Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
b2 = np.random.randn(K)
38
39
def
sigmoid(a):
40
return
1 / (1 + np.exp(-a))
41
42
def
forward(X, W1, b1, W2, b2):
43
Z = sigmoid(X.dot(W1) + b1)
# sigmoid
Callers
1
forward
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected