From 13a5d22f09a8c3a8924631de452322c8f9948893 Mon Sep 17 00:00:00 2001 From: Javi Ribera Date: Fri, 21 Sep 2018 16:01:40 -0400 Subject: [PATCH] script is now part of the package: Former-commit-id: 9e1b82b186fd44a1bcfd35afc6d526af724ad5a7 --- .../make_metric_plots.py | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 scripts_dataset_and_results/make_metric_plots.py diff --git a/scripts_dataset_and_results/make_metric_plots.py b/scripts_dataset_and_results/make_metric_plots.py deleted file mode 100644 index 5ac393e..0000000 --- a/scripts_dataset_and_results/make_metric_plots.py +++ /dev/null @@ -1,40 +0,0 @@ -import os -import numpy as np -import matplotlib as mpl -import matplotlib.pyplot as plt -import pandas as pd -import argparse - -# Parse command-line arguments -parser = argparse.ArgumentParser( - description='Create a bunch of plot from the metrics in a CSV.', - formatter_class=argparse.ArgumentDefaultsHelpFormatter) -parser.add_argument('csv', - help='CSV file with the precision and recall results.') -parser.add_argument('out', - help='Output directory.') -parser.add_argument('--title', - default='', - help='Title of the plot in the figure.') -parser.add_argument('--th', - type=float, - required=True, - help='Detection threshold tau. The closest to this value will be used.') -parser.add_argument('--rs', - type=str, - required=True, - help='List of values, each with different colors in the scatter plot. ' - 'Maximum distance to consider a True Positive. ' - 'The closest to this value will be used.') -args = parser.parse_args() - - -figs = metrics.make_metric_plots(csv_path=csv, - th=args.th, - rs=args.rs, - title=args.title) - -for key, fig in figs: - # Save to disk - fig.savefig(os.path.join(args.out, f'{fig}.png')) -