From 1d65b3ace71edf9eff284b98130c61002ce35cfb Mon Sep 17 00:00:00 2001 From: ntalluri Date: Thu, 5 Dec 2024 16:03:05 -0600 Subject: [PATCH] change how plot is --- spras/evaluation.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spras/evaluation.py b/spras/evaluation.py index 3e2b1e0b..61628f59 100644 --- a/spras/evaluation.py +++ b/spras/evaluation.py @@ -120,14 +120,11 @@ def precision_and_recall(file_paths: Iterable[Path], node_table: pd.DataFrame, a subset["Recall"], subset["Precision"], marker='o', - linestyle='-', + linestyle='', label=f"{algorithm}" ) - # plot combined precision and recall from all the algorithms - if len(algorithms) > 1: - plt.plot(pr_df["Recall"], pr_df["Precision"], linestyle='--', color='b', label="Overall Precision-Recall", alpha = 0.3) - + plt.xlabel("Recall") plt.ylabel("Precision") plt.title(f"Precision and Recall Plot")