Skip to content

Commit 821b64c

Browse files
committed
Changed as per PEP8
1 parent afd47d2 commit 821b64c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

neural_network/back_propagation_neural_network.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ def sigmoid(x: np.ndarray) -> np.ndarray:
2929
>>> import numpy as np
3030
>>> np.allclose(sigmoid(np.array([0])), np.array([0.5]))
3131
True
32-
>>> np.allclose(sigmoid(np.array([-1, 0, 1])), np.array([0.26894142, 0.5, 0.73105858]))
32+
>>> np.allclose(
33+
... sigmoid(np.array([-1, 0, 1])),
34+
... np.array([0.26894142, 0.5, 0.73105858])
35+
... )
3336
True
3437
"""
3538
return 1 / (1 + np.exp(-x))

0 commit comments

Comments
 (0)