@@ -38,48 +38,6 @@ def generate_list(param: Parameter, paramName):
38
38
return []
39
39
40
40
41
- # def generate_config_files(experiment: ExperimentData):
42
- # constants = {}
43
- # parameters = {}
44
- # gather_parameters(experiment.hyperparameters, constants, parameters)
45
- # explogger.info("param list: " + str(parameters))
46
- # explogger.info("const list: " + str(constants))
47
-
48
-
49
- # configDict = {}
50
- # configIdNumber = 0
51
- # for varyingKey, varyingVar in parameters.items():
52
- # explogger.info(f'Keeping {varyingVar} constant')
53
- # possibleParamVals = []
54
-
55
- # #Required to do the cross product, since each config is made by
56
- # #doing a cross product of lists of name value pairs the default variable needs to be
57
- # #a single item list so that there is only one possible value for the default variable
58
- # possibleParamVals.append(generate_list(varyingVar, varyingKey))
59
-
60
- # for otherKey, otherVar in parameters.items():
61
- # if otherKey != varyingKey:
62
- # possibleParamVals.append([(otherKey, get_default(otherVar))])
63
- # try:
64
- # permutations = list(itertools.product(*possibleParamVals))
65
- # except Exception as err:
66
- # raise GladosInternalError("Error while making permutations") from err
67
-
68
- # for thisPermutation in permutations:
69
- # configItems = {}
70
- # for item in thisPermutation:
71
- # name = item[0]
72
- # value = item[1]
73
- # configItems[name] = value
74
- # configItems.update(constants)
75
- # configDict[f'config{configIdNumber}'] = ConfigData(data=configItems)
76
- # explogger.info(f'Generated config {configIdNumber}')
77
- # configIdNumber += 1
78
-
79
- # explogger.info("Finished generating configs")
80
- # experiment.configs = configDict
81
- # return configIdNumber
82
-
83
41
def generate_config_files (experiment : ExperimentData ):
84
42
constants = {}
85
43
parameters = {}
0 commit comments