Resolve the input CSV path for a given method. :param method: The method name. :param dataset: The dataset name. :return: The input CSV path for the given method.
(method: str, dataset: str)
| 45 | |
| 46 | |
| 47 | def resolve_method_input_csv_path(method: str, dataset: str) -> str: |
| 48 | """Resolve the input CSV path for a given method. |
| 49 | |
| 50 | :param method: The method name. |
| 51 | :param dataset: The dataset name. |
| 52 | :return: The input CSV path for the given method. |
| 53 | """ |
| 54 | if method in STANDARDIZED_DIR_METHODS or method in ["flowdock", "neuralplexer"]: |
| 55 | return os.path.join( |
| 56 | "forks", |
| 57 | METHOD_TITLE_MAPPING.get(method, method), |
| 58 | "inference", |
| 59 | f"{method}_{dataset}_inputs.csv", |
| 60 | ) |
| 61 | else: |
| 62 | raise ValueError(f"Invalid method: {method}") |
| 63 | |
| 64 | |
| 65 | def resolve_method_title(method: str) -> str: |
no test coverage detected