MCPcopy 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
22def sigmoid(a):
23 return 1 / (1 + np.exp(-a))
24
25def forward(X, W, b):
26 return sigmoid(X.dot(W) + b)

Callers 1

forwardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected