From fc508004fb9f586af6ed10af9933b63202dfc83f Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 25 Jun 2018 15:53:25 +0800 Subject: [PATCH] fix metrics.Auc --- python/paddle/fluid/metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/metrics.py b/python/paddle/fluid/metrics.py index c9cd88197..37c312a77 100644 --- a/python/paddle/fluid/metrics.py +++ b/python/paddle/fluid/metrics.py @@ -580,10 +580,10 @@ class Auc(MetricBase): self.tn_list = np.zeros((num_thresholds, )) self.fp_list = np.zeros((num_thresholds, )) - def update(self, preds, labels): + def update(self, predictions, labels): if not _is_numpy_(labels): raise ValueError("The 'labels' must be a numpy ndarray.") - if not _is_numpy_(preds): + if not _is_numpy_(predictions): raise ValueError("The 'predictions' must be a numpy ndarray.") kepsilon = 1e-7 # to account for floating point imprecisions -- GitLab