Skip to content

Commit 87b7150

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1ddc396 commit 87b7150

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎maths/sigmoid.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ def sigmoid(vector: np.ndarray) -> np.ndarray:
6565
result[positive_mask] = 1 / (1 + np.exp(-vector[positive_mask]))
6666

6767
negative_exponentials = np.exp(vector[~positive_mask])
68-
result[~positive_mask] = negative_exponentials / (
69-
1 + negative_exponentials
70-
)
68+
result[~positive_mask] = negative_exponentials / (1 + negative_exponentials)
7169

7270
return result
7371

0 commit comments

Comments
 (0)