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

add : ray result analysis

parent a35900d3
No related branches found
No related tags found
No related merge requests found
...@@ -262,13 +262,16 @@ def analyze_ray_res(storage_path, exp_name, args, gpus_per_trial=1): ...@@ -262,13 +262,16 @@ def analyze_ray_res(storage_path, exp_name, args, gpus_per_trial=1):
continue continue
print( print(
f"Trial #{i} finished successfully train loss of :", f"Trial #{i} ({result.trial_id}) finished successfully train loss of :",
result.metrics["train loss"], " train acc of :", {result.metrics["train loss"]}, " train acc of :",
result.metrics["train cont acc"], " val loss of :", {result.metrics["train cont acc"]}, " val loss of :",
result.metrics["val loss"], " val acc of :", {result.metrics["val loss"]}, " val acc of :",
result.metrics["val acc"] {result.metrics["val acc"]}
) )
df = results.get_dataframe()
df.to_csv('df_results_calmettes.csv')
if __name__ == '__main__': if __name__ == '__main__':
......
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