xlstm_jax.trainer.logger.file_logger#
Attributes#
Classes#
Configuration for the file logger tool. |
|
Module Contents#
- xlstm_jax.trainer.logger.file_logger.LOGGER#
- class xlstm_jax.trainer.logger.file_logger.FileLoggerConfig#
Bases:
xlstm_jax.trainer.logger.base_logger.LoggerToolsConfigConfiguration for the file logger tool.
- log_step_key#
The key to use for the step in the logs.
- log_epoch_key#
The key to use for the epoch in the logs.
- config_format#
The format to use when logging the config.
- log_dir#
The directory to use for the logs. Is added to the log_path in the logger.
- create(logger)#
Creates the file logger tool.
- Parameters:
- Return type:
- class xlstm_jax.trainer.logger.file_logger.FileLogger(config, logger)#
Bases:
xlstm_jax.trainer.logger.base_logger.LoggerTool- Parameters:
config (FileLoggerConfig)
- config#
- config_to_log = None#
- logger#
- log_path#
- logs#
- log_config(config)#
Log the config to disk.
- Parameters:
config (xlstm_jax.configs.ConfigDict | dict[str, xlstm_jax.configs.ConfigDict]) – The config to log.
- setup()#
Set up the file logger.
- log_metrics(metrics, step, epoch, mode)#
Log a single metric dictionary in the file logger.
The metrics are logged in a list and saved to disk at the end.