def get_output_dir(subfolder: Optional[str] = None) -> str: """Return an unique output dir based on the configuration overrides""" path = HydraConfig.get().run.dir if subfolder is not None: name = os.path.basename(path) path = os.path.dirname(path) path = os.path.join(path, subfolder, name) if not os.path.exists(path): os.makedirs(path) return path
def get_sweep_dir() -> str: return HydraConfig.get().sweep.dir
def get_overrides() -> str: """Return the configuration overrides""" return HydraConfig.get().job.override_dirname
def get_hydra_config() -> DictConfig: r""" Return the configuration """ return HydraConfig.get()
def get_output_dir() -> str: r""" Return an unique output dir based on the configuration overrides """ return HydraConfig.get().run.dir
def get_output_dir() -> str: r""" Specific output dir based on the override """ return HydraConfig.get().run.dir
def get_overrides() -> str: return HydraConfig.get().job.override_dirname
def get_hydra_config() -> DictConfig: return HydraConfig.get()