in runtool/runtool/experiments_converter.py [0:0]
def generate_run_configuration(cls: "Job", job: dict) -> str:
"""
The run configuration describes the dataset and algorithm of the job.
This is done by hashing the image, instance type, hyperparameters and
dataset of the job. The string this function returns has this format:
"<experiment_name>_<hash>"
"""
hyperparameters = job["experiment"]["algorithm"].get(
"hyperparameters", ""
)
if hyperparameters:
hyperparameters = json.dumps(hyperparameters, sort_keys=True)
trial_id = "".join(
(
job["experiment"]["algorithm"]["image"],
job["experiment"]["algorithm"]["instance"],
hyperparameters,
json.dumps(job["experiment"]["dataset"], sort_keys=True),
)
)
return f"{job['experiment_name']}_{reproducible_hash(trial_id)}"