Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/ddbourgin/numpy-ml
/ _sigmoid
Function
_sigmoid
numpy_ml/linear_models/logistic.py:171–173 ·
view source on GitHub ↗
The logistic sigmoid function
(x)
Source
from the content-addressed store, hash-verified
169
170
171
def
_sigmoid(x):
172
""
"The logistic sigmoid function"
""
173
return
1 / (1 + np.exp(-x))
Callers
2
fit
Method · 0.85
predict
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected