Fix element modification in dataframe list
This commit is contained in:
parent
fb5e9dc703
commit
1aafc9bdda
|
@ -55,10 +55,9 @@ def script_execution(filenames, df_list, iterations=2):
|
|||
["memetic", "random"],
|
||||
["memetic", "best"],
|
||||
]
|
||||
populated_list = []
|
||||
for dataset in filenames:
|
||||
print(f"Running on dataset {dataset}")
|
||||
for df, params in zip(df_list, parameters):
|
||||
for index, params in zip(range(4), parameters):
|
||||
print(f"Running {params} algorithm")
|
||||
output_list = []
|
||||
for _ in range(iterations):
|
||||
|
@ -66,8 +65,8 @@ def script_execution(filenames, df_list, iterations=2):
|
|||
[executable, script, dataset, *params], capture_output=True
|
||||
).stdout.splitlines()
|
||||
output_list.append(output_cmd)
|
||||
populated_list.append(populate_dataframe(df, output_list, dataset))
|
||||
return populated_list
|
||||
df_list[index] = populate_dataframe(df_list[index], output_list, dataset)
|
||||
return df_list
|
||||
|
||||
|
||||
def export_results(df_list):
|
||||
|
|
Loading…
Reference in New Issue