MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / sigmoid

Function sigmoid

logistic_regression_class/logistic3.py:44–45  ·  view source on GitHub ↗
(z)

Source from the content-addressed store, hash-verified

42z = Xb.dot(w)
43
44def sigmoid(z):
45 return 1/(1 + np.exp(-z))
46
47
48Y = sigmoid(z)

Callers 1

logistic3.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected