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

Function sigmoid

logistic_regression_class/bad_xor.py:40–41  ·  view source on GitHub ↗
(z)

Source from the content-addressed store, hash-verified

38z = Xb.dot(w)
39
40def sigmoid(z):
41 return 1/(1 + np.exp(-z))
42
43
44Y = sigmoid(z)

Callers 1

bad_xor.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected