Skip to content

Commit

Permalink
change how plot is
Browse files Browse the repository at this point in the history
  • Loading branch information
ntalluri committed Dec 5, 2024
1 parent b3504b5 commit 1d65b3a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spras/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1d65b3a

Please sign in to comment.