def get_checkpoints_dir(train_dir: str): return get_subdir(train_dir, "checkpoints", create=True)
def get_train_root_dir(base_dir: str, model_name: str, create: bool): return get_subdir(base_dir, model_name, create)
def get_train_logs_dir(train_dir: str): return get_subdir(train_dir, "logs", create=True)
def get_train_dir(base_dir: str, train_name: str, create: bool): return get_subdir(base_dir, train_name, create)
def get_val_dir(train_dir: str, entry: PreparedData, iteration: int): subdir_name = f"{datetime.datetime.now():%Y-%m-%d,%H-%M-%S},id={entry.entry_id},speaker={entry.speaker_id},it={iteration}" return get_subdir(_get_validation_root_dir(train_dir), subdir_name, create=True)
def get_inference_root_dir(train_dir: str): return get_subdir(train_dir, "inference", create=True)
def _get_validation_root_dir(train_dir: str): return get_subdir(train_dir, "validation", create=True)
def get_analysis_root_dir(train_dir: str): return get_subdir(train_dir, "analysis", create=True)
def get_infer_sent_dir(infer_dir: str, result_name: str) -> str: return get_subdir(infer_dir, result_name, create=True)
def get_infer_dir(train_dir: str, run_name: str): return get_subdir(get_inference_root_dir(train_dir), run_name, create=True)
def get_val_entry_dir(val_dir: str, result_name: str) -> None: return get_subdir(val_dir, result_name, create=True)
def get_val_dir(train_dir: str, run_name: str) -> str: return get_subdir(_get_validation_root_dir(train_dir), run_name, create=True)