diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2022-03-17 01:03:52 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2022-03-17 01:03:52 +0800 |
commit | 9327a98bcdac624313763ec0ecdc767f99d8f271 (patch) | |
tree | 47b06a508e8fcdb769fa53015797637851820747 /supervised/utils.py | |
parent | 0d282a5deac482045037a61063c1e48cb3668cff (diff) |
Refactoring and add a prototype logger
Diffstat (limited to 'supervised/utils.py')
-rw-r--r-- | supervised/utils.py | 7 |
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 |