MCPcopy 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
171def _sigmoid(x):
172 """The logistic sigmoid function"""
173 return 1 / (1 + np.exp(-x))

Callers 2

fitMethod · 0.85
predictMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected