MolecularDiffusion.core.logger¶
Classes¶
Base class for loggers. |
|
Log outputs with the builtin logging module of Python. |
|
Log outputs with Weights and Biases and track the experiment progress. |
Module Contents¶
- class MolecularDiffusion.core.logger.LoggerBase¶
Bases:
objectBase class for loggers.
Any custom logger should be derived from this class.
- abstractmethod log(record, step_id, category='train/batch')¶
Log a record.
- class MolecularDiffusion.core.logger.LoggingLogger¶
Bases:
LoggerBaseLog outputs with the builtin logging module of Python.
By default, the logs will be printed to the console. To additionally log outputs to a file, add the following lines in the beginning of your code.
- log(record, step_id, category='train/batch')¶
Log a record.
- logger¶
- class MolecularDiffusion.core.logger.WandbLogger(project=None, name=None, dir=None, rank=0, **kwargs)¶
Bases:
LoggingLoggerLog outputs with Weights and Biases and track the experiment progress.
Note this class also output logs with the builtin logging module.
See wandb.init for more details.
- Parameters:
project (str, optional) – name of the project
name (str, optional) – name of this run
dir (str, optional) – path to store meta data. Default is ./wandb.
kwargs – keyword arguments for wandb.init
- log(record, step_id, category='train/batch')¶
Log a record.