MCPcopy Create free account
hub / github.com/FinancialComputingUCL/LOBFrame / find_save_path

Function find_save_path

loggers/logger.py:31–41  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

29
30
31def 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
44def logger(experiment_id, header, contents):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected