Skip to content

BaseLogger

Logger

Bases: abc.ABC

The base class of the Logger Module.

ALl loging services, such as TensorBoard of Weights and Biases, implement their own logger modules which are children of this class. This class shows the API of all loggers. The logger module is invoked by the Algorithm class via the homonym methods.

Source code in sequel/utils/loggers/base_logger.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class Logger(abc.ABC):
    """The base class of the Logger Module.

    ALl loging services, such as TensorBoard of Weights and Biases, implement their own logger modules which are
    children of this class. This class shows the API of all loggers. The logger module is invoked by the [`Algorithm
    class`][sequel.algos.base_algo.BaseAlgorithm] via the homonym methods.
    """

    def __init__(self):
        """Inits the base class for the Loggers module."""
        pass

    def log(self, item, step=None, epoch=None):
        raise NotImplementedError

    def log_parameters(self, config: dict):
        raise NotImplementedError

    def log_code(self):
        raise NotImplementedError

    def log_figure(self, figure, name, step=None, epoch=None):
        raise NotImplementedError

    def terminate(self):
        raise NotImplementedError

    def log_all_results(self):
        pass

__init__()

Inits the base class for the Loggers module.

Source code in sequel/utils/loggers/base_logger.py
12
13
14
def __init__(self):
    """Inits the base class for the Loggers module."""
    pass