Skip to content
Snippets Groups Projects
Commit fcdb00a7 authored by Lannoy, Carlos de's avatar Lannoy, Carlos de
Browse files

add f1 to summary table

parent 66da9665
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ rule parse_inference_results:
f1 = ((precision ** -1 + recall ** -1) / 2) ** -1
running_time = float(pd.read_csv(f'{out_dir}inference_benchmark.tsv', sep='\t').s)
with open(output.summary, 'w') as fh:
fh.write(f'parameter_file,recall,precision,f1,running_time\n{os.path.basename(parameter_file)},{recall},{precision},{running_time}')
fh.write(f'parameter_file,recall,precision,f1,running_time\n{os.path.basename(parameter_file)},{recall},{precision},{f1},{running_time}')
out_df.to_csv(output.inference_list)
rule run_inference:
......
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