aboutsummaryrefslogtreecommitdiff
path: root/supervised/utils.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2022-03-17 01:03:52 +0800
committerJordan Gong <jordan.gong@protonmail.com>2022-03-17 01:03:52 +0800
commit9327a98bcdac624313763ec0ecdc767f99d8f271 (patch)
tree47b06a508e8fcdb769fa53015797637851820747 /supervised/utils.py
parent0d282a5deac482045037a61063c1e48cb3668cff (diff)
Refactoring and add a prototype logger
Diffstat (limited to 'supervised/utils.py')
-rw-r--r--supervised/utils.py7
1 files changed, 7 insertions, 0 deletions
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