Skip to content

Commit f065785

Browse files
committed
plotting
1 parent a20ceaf commit f065785

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plotting/plot_pareto_ngrams.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ def getAUCTable(df, df_pr_pareto, print_table=False):
420420
def plot_ngrams():
421421
threshold = 0.92
422422
df_pcbs = pd.read_csv(base_addr + f"out_ngrams_{threshold}_pcbs_csv/stats.csv")
423-
df = df_pcbs
423+
df_pcbs_high_res = pd.read_csv(base_addr + f"out_ngrams_high_res_{threshold}_pcbs_csv/stats.csv")
424+
df = pd.concat([df_pcbs, df_pcbs_high_res])
424425

425426
df = df.dropna(how="all")
426427
replace_graph_names(df)
@@ -449,7 +450,8 @@ def plot_ngrams():
449450
getAUCTable(df_pcbs, df_pr_pareto)
450451

451452
# Plot Precision Recall Pareto frontier for PCBS methods
452-
plotPRPareto(df_pr_pareto)
453+
axes = plotPRPareto(df_pr_pareto, only_high_p=True)
454+
axes[0].set_ylim((0.5, 0.8))
453455
plt.savefig(base_addr + f"pr_uci_{threshold}.pdf", bbox_inches="tight")
454456
print("plotted pr_uci.pdf")
455457

0 commit comments

Comments
 (0)