Skip to content

Commit 4976765

Browse files
Kotminpre-commit-ci[bot]tianyizheng02
authored andcommitted
Style sigmoid function in harmony with pep guideness (TheAlgorithms#6677)
* Style sigmoid function in harmony with pep guideness * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
1 parent 7bdab1d commit 4976765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neural_network/back_propagation_neural_network.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
from matplotlib import pyplot as plt
2222

2323

24-
def sigmoid(x):
25-
return 1 / (1 + np.exp(-1 * x))
24+
def sigmoid(x: np.ndarray) -> np.ndarray:
25+
return 1 / (1 + np.exp(-x))
2626

2727

2828
class DenseLayer:

0 commit comments

Comments
 (0)