Skip to content
Snippets Groups Projects
Commit fa7a4ee5 authored by Schneider Leo's avatar Schneider Leo
Browse files

add : ray result analysis

parent 2d95e5ac
No related branches found
No related tags found
No related merge requests found
......@@ -256,12 +256,16 @@ def analyze_ray_res(storage_path, exp_name, args, gpus_per_trial=1):
num_results = len(results)
print("Number of results:", num_results)
df = results.get_dataframe()
df.to_csv('df_results_calmettes.csv')
for i, result in enumerate(results):
if result.error:
print(f"Trial #{i} had an error:", result.error)
continue
print(
else :
print(
f"Trial #{i} finished successfully train loss of :",
{result.metrics["train loss"]}, " train acc of :",
{result.metrics["train cont acc"]}, " val loss of :",
......@@ -269,8 +273,7 @@ def analyze_ray_res(storage_path, exp_name, args, gpus_per_trial=1):
{result.metrics["val acc"]}
)
df = results.get_dataframe()
df.to_csv('df_results_calmettes.csv')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment