We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a6606 commit 4deacdeCopy full SHA for 4deacde
ann_logistic_extra/ann_train.py
@@ -49,7 +49,7 @@ def classification_rate(Y, P):
49
return np.mean(Y == P)
50
51
def cross_entropy(Y, pY):
52
- return -np.sum(Y * np.log(pY)) / len(T)
+ return -np.sum(Y * np.log(pY)) / len(Y)
53
54
55
# train loop
0 commit comments