Skip to content

Commit

Permalink
Fixed image rendering in notebooks (#918)
Browse files Browse the repository at this point in the history
* Fixed image rendering in notebooks

* Replaced python kernel for od_sr_synth.ipynb
  • Loading branch information
RobertSamoilescu authored Dec 11, 2024
1 parent 1fea2ba commit 6dd2242
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions doc/source/examples/cd_online_camelyon.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"We will use the Camelyon17 dataset, one of the [WILDS](https://wilds.stanford.edu/) datasets of [Koh et al, (2020)](https://arxiv.org/abs/2012.07421) that represent \"in-the-wild\" distribution shifts for various data modalities. It contains tissue scans to be classificatied as benign or cancerous. The pre-change distribution corresponds to scans from across three hospitals and the post-change distribution corresponds to scans from a new fourth hospital.\n",
"\n",
"<div>\n",
"<img src=attachment:camelyon.png width=\"400\"/>\n",
"<img src=image/camelyon.png width=\"400\"/>\n",
"</div>\n",
"\n",
"[Koh et al, (2020)](https://arxiv.org/abs/2012.07421) show that models trained on scans from the pre-change distribution achieve an accuracy of 93.2% on unseen scans from same distribution, but only 70.3% accuracy on scans from the post-change distribution.\n",
Expand Down Expand Up @@ -546,7 +546,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -560,9 +560,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.15"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
8 changes: 4 additions & 4 deletions doc/source/examples/cd_supervised_penguins.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"The [palmerpenguins](https://allisonhorst.github.io/palmerpenguins) dataset <cite data-cite=\"Horst2020\"><!-- --></cite> consists of data on 344 penguins from 3 islands in the Palmer Archipelago, Antarctica. There are 3 different species of penguin in the dataset, and a common task is to classify the the species of each penguin based upon two features, the length and depth of the peguin's bill, or beak.\n",
"\n",
"<div>\n",
"<img src=\"attachment:penguins.png\" width=\"700\"/>\n",
"<img src=\"image/penguins.png\" width=\"700\"/>\n",
"</div>"
]
},
Expand All @@ -30,7 +30,7 @@
"metadata": {},
"source": [
"<div>\n",
"<img src=\"attachment:penguinculmen.png\" width=\"600\"/>\n",
"<img src=\"image/penguinculmen.png\" width=\"600\"/>\n",
"</div>\n",
"\n",
"Artwork by [Allison Horst](https://twitter.com/allison_horst)"
Expand Down Expand Up @@ -815,7 +815,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "venv",
"language": "python",
"name": "python3"
},
Expand All @@ -829,7 +829,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.15"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion docs-gb/examples/cd_online_camelyon.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"We will use the Camelyon17 dataset, one of the [WILDS](https://wilds.stanford.edu/) datasets of [Koh et al, (2020)](https://arxiv.org/abs/2012.07421) that represent \"in-the-wild\" distribution shifts for various data modalities. It contains tissue scans to be classificatied as benign or cancerous. The pre-change distribution corresponds to scans from across three hospitals and the post-change distribution corresponds to scans from a new fourth hospital.\n",
"\n",
"<div>\n",
"<img src=attachment:camelyon.png width=\"400\"/>\n",
"<img src=../images/camelyon.png width=\"400\"/>\n",
"</div>\n",
"\n",
"[Koh et al, (2020)](https://arxiv.org/abs/2012.07421) show that models trained on scans from the pre-change distribution achieve an accuracy of 93.2% on unseen scans from same distribution, but only 70.3% accuracy on scans from the post-change distribution.\n",
Expand Down
4 changes: 2 additions & 2 deletions docs-gb/examples/cd_supervised_penguins.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"The [palmerpenguins](https://allisonhorst.github.io/palmerpenguins) dataset <cite data-cite=\"Horst2020\"><!-- --></cite> consists of data on 344 penguins from 3 islands in the Palmer Archipelago, Antarctica. There are 3 different species of penguin in the dataset, and a common task is to classify the the species of each penguin based upon two features, the length and depth of the peguin's bill, or beak.\n",
"\n",
"<div>\n",
"<img src=\"attachment:penguins.png\" width=\"700\"/>\n",
"<img src=\"../images/penguins.png\" width=\"700\"/>\n",
"</div>"
]
},
Expand All @@ -30,7 +30,7 @@
"metadata": {},
"source": [
"<div>\n",
"<img src=\"attachment:penguinculmen.png\" width=\"600\"/>\n",
"<img src=\"../images/penguinculmen.png\" width=\"600\"/>\n",
"</div>\n",
"\n",
"Artwork by [Allison Horst](https://twitter.com/allison_horst)"
Expand Down
12 changes: 6 additions & 6 deletions docs-gb/examples/od_sr_synth.ipynb

Large diffs are not rendered by default.

0 comments on commit 6dd2242

Please sign in to comment.