Find the directory path for saving results associated with a given `model_id`. This function constructs a directory path within the 'loggers/results' directory relative to the script's location. :param model_id: model identifier, (str). :return: directory path, (str).
(model_id)
| 29 | |
| 30 | |
| 31 | def find_save_path(model_id): |
| 32 | """ |
| 33 | Find the directory path for saving results associated with a given `model_id`. This function constructs a directory path within the |
| 34 | 'loggers/results' directory relative to the script's location. |
| 35 | |
| 36 | :param model_id: model identifier, (str). |
| 37 | :return: directory path, (str). |
| 38 | """ |
| 39 | root_path = sys.path[0] |
| 40 | dir_path = f"{root_path}/loggers/results/{model_id}" |
| 41 | return dir_path |
| 42 | |
| 43 | |
| 44 | def logger(experiment_id, header, contents): |
nothing calls this directly
no outgoing calls
no test coverage detected