Skip to content

Commit 0b88f1e

Browse files
committed
change predictions to preds
1 parent fac1d47 commit 0b88f1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/fluid/metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,12 +596,12 @@ def update(self, preds, labels):
596596
tp, fn, tn, fp = 0, 0, 0, 0
597597
for i, lbl in enumerate(labels):
598598
if lbl:
599-
if predictions[i, 1] >= thresh:
599+
if preds[i, 1] >= thresh:
600600
tp += 1
601601
else:
602602
fn += 1
603603
else:
604-
if predictions[i, 1] >= thresh:
604+
if preds[i, 1] >= thresh:
605605
fp += 1
606606
else:
607607
tn += 1

0 commit comments

Comments
 (0)