MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / sigmoid

Function sigmoid

neural_network/back_propagation_neural_network.py:25–26  ·  view source on GitHub ↗
(x: np.ndarray)

Source from the content-addressed store, hash-verified

23
24
25def sigmoid(x: np.ndarray) -> np.ndarray:
26 return 1 / (1 + np.exp(-x))
27
28
29class DenseLayer:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected