From 1c72b8db032ccd9bbb13423f6d505f7cc42352fe Mon Sep 17 00:00:00 2001 From: Pablo Olivares Date: Mon, 22 Apr 2024 19:48:49 +0200 Subject: [PATCH] `Callback` created advances #17 --- callbacks/__init__.py | 0 callbacks/callback.py | 15 +++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 callbacks/__init__.py create mode 100644 callbacks/callback.py diff --git a/callbacks/__init__.py b/callbacks/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/callbacks/callback.py b/callbacks/callback.py new file mode 100644 index 0000000..7f47a3e --- /dev/null +++ b/callbacks/callback.py @@ -0,0 +1,15 @@ +class Callback: + def should_continue(self) -> bool: + return True + + def on_epoch_begin(self, epoch, logs=None) -> None: + pass + + def on_epoch_end(self, epoch, logs=None) -> None: + pass + + def on_train_begin(self, logs=None) -> None: + pass + + def on_train_end(self, logs=None) -> None: + pass