From 76613ea6cc94df089d669b99c709d32302bcbdb7 Mon Sep 17 00:00:00 2001 From: "He, Kai" Date: Fri, 28 Aug 2020 08:49:08 +0000 Subject: [PATCH] add auc --- python/paddle_fl/mpc/metrics.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/paddle_fl/mpc/metrics.py b/python/paddle_fl/mpc/metrics.py index 57bfeac..df656e1 100644 --- a/python/paddle_fl/mpc/metrics.py +++ b/python/paddle_fl/mpc/metrics.py @@ -15,6 +15,7 @@ MPC Metrics """ +import paddle.fluid.metrics from paddle.fluid.metrics import MetricBase import numpy as np @@ -23,6 +24,7 @@ import scipy __all__ = [ 'KSstatistic', + 'Auc', ] @@ -108,3 +110,6 @@ class KSstatistic(MetricBase): """ return scipy.stats.ks_2samp(self._data1, self._data2).statistic + + +Auc = paddle.fluid.metrics.Auc -- GitLab