Skip to content

Commit 4deacde

Browse files
committed
update
1 parent 37a6606 commit 4deacde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ann_logistic_extra/ann_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def classification_rate(Y, P):
4949
return np.mean(Y == P)
5050

5151
def cross_entropy(Y, pY):
52-
return -np.sum(Y * np.log(pY)) / len(T)
52+
return -np.sum(Y * np.log(pY)) / len(Y)
5353

5454

5555
# train loop

0 commit comments

Comments
 (0)