From 9327a98bcdac624313763ec0ecdc767f99d8f271 Mon Sep 17 00:00:00 2001 From: Jordan Gong Date: Thu, 17 Mar 2022 01:03:52 +0800 Subject: Refactoring and add a prototype logger --- supervised/utils.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 supervised/utils.py (limited to 'supervised/utils.py') diff --git a/supervised/utils.py b/supervised/utils.py new file mode 100644 index 0000000..c477544 --- /dev/null +++ b/supervised/utils.py @@ -0,0 +1,7 @@ +def training_log(func): + def wrapper(*args, **kwargs): + result = func(*args, **kwargs) + print(result) + return result + + return wrapper -- cgit v1.2.3