logger#
Source code: tianshou/highlevel/logger.py
- class LoggerFactory[source]#
- abstract create_logger(log_dir: str, experiment_name: str, run_id: str | None, config_dict: dict) BaseLogger [source]#
Creates the logger.
- Parameters:
log_dir – path to the directory in which log data is to be stored
experiment_name – the name of the job, which may contain os.path.sep
run_id – a unique name, which, depending on the logging framework, may be used to identify the logger
config_dict – a dictionary with data that is to be logged
- Returns:
the logger
- class LoggerFactoryDefault(logger_type: Literal['tensorboard', 'wandb'] = 'tensorboard', wandb_project: str | None = None)[source]#
- create_logger(log_dir: str, experiment_name: str, run_id: str | None, config_dict: dict) BaseLogger [source]#
Creates the logger.
- Parameters:
log_dir – path to the directory in which log data is to be stored
experiment_name – the name of the job, which may contain os.path.sep
run_id – a unique name, which, depending on the logging framework, may be used to identify the logger
config_dict – a dictionary with data that is to be logged
- Returns:
the logger