From 208b81f2fe73b5601dbfc6ee5e2eaa58dcca63af Mon Sep 17 00:00:00 2001 From: tarantula-leo <54618933+tarantula-leo@users.noreply.github.com> Date: Thu, 16 Nov 2023 17:59:59 +0800 Subject: [PATCH] change function name --- sml/metrics/classification/classification_emul.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sml/metrics/classification/classification_emul.py b/sml/metrics/classification/classification_emul.py index 6df71b94..4da6a3a6 100644 --- a/sml/metrics/classification/classification_emul.py +++ b/sml/metrics/classification/classification_emul.py @@ -33,7 +33,7 @@ # TODO: design the enumation framework, just like py.unittest # all emulation action should begin with `emul_` (for reflection) -def emul_SGDClassifier(mode: emulation.Mode.MULTIPROCESS): +def emul_auc(mode: emulation.Mode.MULTIPROCESS): try: # bandwidth and latency only work for docker mode emulator = emulation.Emulator( @@ -130,5 +130,5 @@ def check(spu_result, sk_result): if __name__ == "__main__": - emul_SGDClassifier(emulation.Mode.MULTIPROCESS) + emul_auc(emulation.Mode.MULTIPROCESS) emul_Classification(emulation.Mode.MULTIPROCESS)