Skip to content

Commit

Permalink
Merge pull request #2210 from Foxglove144/notebook-fixes
Browse files Browse the repository at this point in the history
Make notebooks reproducible
  • Loading branch information
beat-buesser authored Sep 7, 2023
2 parents 7bb45ed + 6437e70 commit 818b50e
Show file tree
Hide file tree
Showing 7 changed files with 32,973 additions and 2,979 deletions.
17 changes: 17 additions & 0 deletions notebooks/adversarial_retraining.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -29,6 +30,10 @@
"source": [
"import warnings\n",
"warnings.filterwarnings('ignore')\n",
"\n",
"import tensorflow as tf\n",
"tf.compat.v1.disable_eager_execution()\n",
"\n",
"from keras.datasets import mnist, cifar10\n",
"from keras.models import load_model\n",
"from keras.utils.np_utils import to_categorical\n",
Expand All @@ -41,6 +46,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -53,6 +59,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -82,6 +89,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -101,6 +109,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -128,6 +137,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -145,6 +155,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -173,6 +184,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -185,6 +197,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -205,6 +218,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -224,6 +238,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -251,6 +266,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -268,6 +284,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down
21 changes: 20 additions & 1 deletion notebooks/adversarial_training_mnist.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 818b50e

Please sign in to comment.