Skip to content

Commit 6deff0c

Browse files
committed
doc changed
1 parent c1dc5e5 commit 6deff0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neural_network/binary_crossentropy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def binary_cross_entropy(y_true: np.ndarray, y_pred: np.ndarray) -> float:
2121
return:
2222
float: the output value of binary crossentropy
2323
24-
Mathematically, BCE = -(1/N) * Sum(y_i * log(p_i) + (1 - y_i) * log(1 - p_i))
24+
Mathematically, BCE = -(1/N)*Sum(y_i * log(p_i)+(1 - y_i) * log(1 - p_i))
2525
2626
Examples:
2727
>>> binary_cross_entropy(np.array([1, 0, 1]), np.array([0.9, 0.2, 0.8]))

0 commit comments

Comments
 (0)