Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ sigmoid
Function
sigmoid
ann_logistic_extra/logistic_train.py:22–23 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
20
21
# make predictions
22
def
sigmoid(a):
23
return
1 / (1 + np.exp(-a))
24
25
def
forward(X, W, b):
26
return
sigmoid(X.dot(W) + b)
Callers
1
forward
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected