unilab.training.run.get_log_root

unilab.training.run.get_log_root(root_dir, cfg=None, *, algo_log_name=None, log_root=None)[source]

Resolve the algorithm log root.

The configured training.log_root (or the explicit log_root argument) wins; otherwise the UNILAB_TEST_LOG_ROOT override applies; otherwise the default is <root_dir>/logs/<algo_log_name>. Pass either a composed Hydra cfg or an explicit algo_log_name.

Parameters:
Return type:

Path