Skip to content

Commit

Permalink
update graphics code to output PDFs
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorOBrien-Foxx committed Nov 24, 2024
1 parent d5365b4 commit 4345f79
Show file tree
Hide file tree
Showing 16 changed files with 50 additions and 42 deletions.
40 changes: 20 additions & 20 deletions bugs2fix-checklist.ipynb

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions bugs2fix.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
{
"cell_type": "markdown",
"id": "00e7c680-4188-434c-8d6f-09d872fef397",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"# Generate Output"
]
Expand Down Expand Up @@ -589,15 +591,15 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"id": "f2db0345-0256-42e4-8f1d-2e5609d511f7",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Saved figure to ./figs/b2f-all.png\n"
"Saved figure to ./figs/b2f-all.pdf\n"
]
},
{
Expand Down Expand Up @@ -642,22 +644,24 @@
" 0.6594912699189425]}]"
]
},
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"runner.render_metric_multi(\n",
" [ metric.ExactMatch, metric.BLEU, metric.CodeBLEUJava ],\n",
" save=\"./figs/b2f-all.png\",\n",
" save=\"./figs/b2f-all.pdf\",\n",
")"
]
},
{
"cell_type": "markdown",
"id": "6401e9e0-e997-47e0-8487-c12c5c883655",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"## Individual Graphs"
]
Expand Down
8 changes: 5 additions & 3 deletions code2code-trans.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Saved figure to ./figs/c2c-all.png\n"
"Saved figure to ./figs/pdf/c2c-all.pdf\n"
]
},
{
Expand Down Expand Up @@ -1573,14 +1573,16 @@
"source": [
"runner.render_metric_multi(\n",
" [ metric.ExactMatch, metric.BLEU, metric.CodeBLEUCSharp ],\n",
" save=\"./figs/c2c-all.png\",\n",
" save=\"./figs/pdf/c2c-all.pdf\",\n",
")"
]
},
{
"cell_type": "markdown",
"id": "11c3a3af-8124-4318-8fa9-f5953a1a89b7",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"## Combined"
]
Expand Down
8 changes: 5 additions & 3 deletions commit-message.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Saved figure to ./figs/cmg-all.png\n"
"Saved figure to ./figs/pdf/cmg-all.pdf\n"
]
},
{
Expand Down Expand Up @@ -498,14 +498,16 @@
"source": [
"runner.render_metric_multi(\n",
" [ metric.BMoses, metric.BNorm ],\n",
" save=\"./figs/cmg-all.png\",\n",
" save=\"./figs/pdf/cmg-all.pdf\",\n",
")"
]
},
{
"cell_type": "markdown",
"id": "b8c970eb-9447-4e78-9ac6-8493523ec8f3",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"## Metric: BLEU"
]
Expand Down
Binary file added figs/b2f-all.pdf
Binary file not shown.
Binary file not shown.
Binary file added figs/pdf/b2f-all.pdf
Binary file not shown.
Binary file added figs/pdf/b2f-bootstrap-all.pdf
Binary file not shown.
Binary file added figs/pdf/b2f-cl-all.pdf
Binary file not shown.
Binary file added figs/pdf/b2f-cl-bootstrap-all.pdf
Binary file not shown.
Binary file added figs/pdf/b2f-cl-pert-rel-bleu-all.pdf
Binary file not shown.
Binary file added figs/pdf/b2f-cl-pert-rel-codebleu-all.pdf
Binary file not shown.
Binary file added figs/pdf/c2c-all.pdf
Binary file not shown.
Binary file added figs/pdf/c2c-bootstrap-all.pdf
Binary file not shown.
Binary file added figs/pdf/cmg-all.pdf
Binary file not shown.
20 changes: 10 additions & 10 deletions metric-progress.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Saved figure to figs/b2f-bootstrap-all.png\n"
"Saved figure to figs/pdf/b2f-bootstrap-all.pdf\n"
]
},
{
Expand All @@ -181,7 +181,7 @@
" iterations=iterations,\n",
" use_cache=True,\n",
" seed=SEED,\n",
" save=\"figs/b2f-bootstrap-all.png\",\n",
" save=\"figs/pdf/b2f-bootstrap-all.pdf\",\n",
")"
]
},
Expand Down Expand Up @@ -327,15 +327,15 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 8,
"id": "e768a697-97f2-4db5-8d53-7dad07ef4132",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Saved figure to figs/b2f-cl-bootstrap-all.png\n"
"Saved figure to figs/pdf/b2f-cl-bootstrap-all.pdf\n"
]
},
{
Expand All @@ -357,7 +357,7 @@
" iterations=iterations,\n",
" use_cache=True,\n",
" seed=SEED,\n",
" save=\"figs/b2f-cl-bootstrap-all.png\",\n",
" save=\"figs/pdf/b2f-cl-bootstrap-all.pdf\",\n",
")"
]
},
Expand All @@ -371,7 +371,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 9,
"id": "688644ac-fd3c-4c39-b222-b84d25dd8b05",
"metadata": {},
"outputs": [
Expand All @@ -390,7 +390,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 10,
"id": "a93cae4e-b98a-47cc-9c7f-452d4cf7af0a",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -487,15 +487,15 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 11,
"id": "2cd19eb7-dc50-4694-9af8-382ee285ae6b",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Saved figure to figs/c2c-bootstrap-all.png\n"
"Saved figure to figs/pdf/c2c-bootstrap-all.pdf\n"
]
},
{
Expand All @@ -517,7 +517,7 @@
" iterations=iterations,\n",
" use_cache=True,\n",
" seed=SEED,\n",
" save=\"figs/c2c-bootstrap-all.png\",\n",
" save=\"figs/pdf/c2c-bootstrap-all.pdf\",\n",
")"
]
},
Expand Down

0 comments on commit 4345f79

Please sign in to comment.