Skip to content

Commit

Permalink
plot P@1 across length and distance
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Mar 20, 2024
1 parent 384bf50 commit 7888097
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
5 changes: 3 additions & 2 deletions latex/splash2024/len_dist_bifi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
ybar,
axis lines*=left,
xtick={0, 10, 20, 30, 40, 50, 60, 70},
ytick={0, 0.1, 0.2, 0.3, 0.4},
ymax=0.4,
ytick={0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0},
ymax=1.0,
ymin=0.0,
bar width=4pt,
]

Expand Down
11 changes: 6 additions & 5 deletions latex/splash2024/len_dist_s2p.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
ybar,
axis lines*=left,
xtick={0, 10, 20, 30, 40, 50, 60, 70},
ytick={0, 0.1, 0.2, 0.3, 0.4},
ymax=0.4,
ytick={0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0},
ymax=1.0,
ymin=0.0,
bar width=4pt,
]

\addplot[green, fill=green] coordinates {(0, 0.368078) (10, 0.416931) (20, 0.393548) (30, 0.387001) (40, 0.3125) (50, 0.289926) (60, 0.258278) (70, 0.198157)};
\addplot[blue, fill=blue] coordinates {(0, 0.127450) (10, 0.131627) (20, 0.133111) (30, 0.107287) (40, 0.099537) (50, 0.104729) (60, 0.100418) (70, 0.123762)};
\addplot[orange, fill=orange] coordinates {(0, 0.037735) (10, 0.072) (20, 0.086093) (30, 0.08125) (40, 0.088235) (50, 0.022727) (60, 0.054945) (70, 0.061538)};
\addplot[green, fill=green] coordinates {(0, 0.352631) (10, 0.413115) (20, 0.400502) (30, 0.378440) (40, 0.308869) (50, 0.287755) (60, 0.268817) (70, 0.210526)};
\addplot[blue, fill=blue] coordinates {(0, 0.122529) (10, 0.126453) (20, 0.144192) (30, 0.118483) (40, 0.108007) (50, 0.106849) (60, 0.097403) (70, 0.122047)};
\addplot[orange, fill=orange] coordinates {(0, 0.03125) (10, 0.070922) (20, 0.077348) (30, 0.087629) (40, 0.094675) (50, 0.02) (60, 0.066038) (70, 0.063291)};

\legend{Δ=1,Δ=2,Δ=3}
\end{axis}
Expand Down
15 changes: 8 additions & 7 deletions latex/splash2024/len_dist_tidy.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
\begin{axis}[
xlabel={$|\sigma|$},
ylabel={Precision@1},
title={BIFI Repair Precision},
title={Tidyparse Repair Precision},
ybar,
axis lines*=left,
xtick={0, 10, 20, 30, 40, 50, 60, 70},
ytick={0, 0.1, 0.2, 0.3, 0.4},
ymax=0.4,
ytick={0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0},
ymax=1.0,
ymin=0.0,
bar width=4pt,
]

\addplot[green, fill=green] coordinates {(0, 0.196013) (10, 0.326401) (20, 0.318538) (30, 0.272843) (40, 0.213894) (50, 0.206651) (60, 0.247525) (70, 0.179245)};
\addplot[blue, fill=blue] coordinates {(0, 0.174603) (10, 0.176651) (20, 0.209573) (30, 0.19195) (40, 0.18851) (50, 0.176166) (60, 0.110787) (70, 0.106383)};
\addplot[orange, fill=orange] coordinates {(0, 0.015873) (10, 0.021858) (20, 0.030435) (30, 0.02439) (40, 0.032922) (50, 0.045) (60, 0.027397) (70, 0.017094)};
\addplot[green, fill=green] coordinates {(0, 1.0) (10, 1.0) (20, 1.0) (30, 1.0) (40, 1.0) (50, 1.0) (60, 1.0) (70, 1.0)};
\addplot[blue, fill=blue] coordinates {(0, 0.3) (10, 0.286) (20, 0.205) (30, 0.433) (40, 0.256) (50, 0.296) (60, 0.236) (70, 0.315)};
\addplot[orange, fill=orange] coordinates {(0, 0.46875) (10, 0.321) (20, 0.366) (30, 0.24) (40, 0.407) (50, 0.454) (60, 0.574) (70, 0.526)};

\legend{Δ=1,Δ=2,Δ=3}
% \legend{Δ=1,Δ=2,Δ=3}
\end{axis}
\end{tikzpicture}
Binary file modified latex/splash2024/splash.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion latex/splash2024/splash.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@
We can also plot this for two other SoTA models, S2P and BIFI across length and distance.

\begin{figure}[h!]
\resizebox{.32\textwidth}{!}{\input{len_dist_s2p}}
\resizebox{.32\textwidth}{!}{\input{len_dist_tidy}}
\resizebox{.32\textwidth}{!}{\input{len_dist_s2p}}
\resizebox{.32\textwidth}{!}{\input{len_dist_bifi}}
\caption{Tidyparse, Seq2Parse and BIFI precision at various lengths and Levenshtein distances.}\label{fig:len_dist_prec}
Expand Down

0 comments on commit 7888097

Please sign in to comment.