Skip to content

Commit e285a4f

Browse files
committed
trusted notebooks and updated path to data folder
1 parent d726d68 commit e285a4f

6 files changed

Lines changed: 46 additions & 19 deletions

File tree

2-mia-differential-privacy/1-MIA-Training.ipynb

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,7 +3099,7 @@
30993099
},
31003100
{
31013101
"cell_type": "code",
3102-
"execution_count": 2,
3102+
"execution_count": null,
31033103
"id": "61fc7ebf",
31043104
"metadata": {},
31053105
"outputs": [],
@@ -3215,7 +3215,7 @@
32153215
"from pathlib import Path\n",
32163216
"import os\n",
32173217
"\n",
3218-
"DATA_FOLDER = Path(os.path.join(os.path.abspath(os.path.curdir), \"..\", \"..\")) / \"data\""
3218+
"DATA_FOLDER = Path(os.path.join(os.path.abspath(os.path.curdir), \"..\")) / \"data\""
32193219
]
32203220
},
32213221
{
@@ -3303,8 +3303,26 @@
33033303
"\n",
33043304
"# get some random training images\n",
33053305
"dataiter = iter(train_loader)\n",
3306-
"images, labels = dataiter.next()\n",
3307-
"\n",
3306+
"images, labels = next(dataiter)"
3307+
]
3308+
},
3309+
{
3310+
"cell_type": "code",
3311+
"execution_count": null,
3312+
"id": "089395c5",
3313+
"metadata": {},
3314+
"outputs": [],
3315+
"source": [
3316+
"images.shape"
3317+
]
3318+
},
3319+
{
3320+
"cell_type": "code",
3321+
"execution_count": null,
3322+
"id": "7dc07e43",
3323+
"metadata": {},
3324+
"outputs": [],
3325+
"source": [
33083326
"# show images\n",
33093327
"imshow(make_grid(images))\n",
33103328
"# print labels\n",
@@ -3486,7 +3504,7 @@
34863504
"name": "python",
34873505
"nbconvert_exporter": "python",
34883506
"pygments_lexer": "ipython3",
3489-
"version": "3.10.5"
3507+
"version": "3.9.16"
34903508
}
34913509
},
34923510
"nbformat": 4,

2-mia-differential-privacy/2-MIA-Reconstruction.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,7 +3099,7 @@
30993099
},
31003100
{
31013101
"cell_type": "code",
3102-
"execution_count": 2,
3102+
"execution_count": null,
31033103
"id": "dd85bfdc-ea55-4413-ac29-eddd6dab96ca",
31043104
"metadata": {},
31053105
"outputs": [],
@@ -3175,7 +3175,7 @@
31753175
"from pathlib import Path\n",
31763176
"import os\n",
31773177
"\n",
3178-
"DATA_FOLDER = Path(os.path.join(os.path.abspath(os.path.curdir), \"..\", \"..\")) / \"data\""
3178+
"DATA_FOLDER = Path(os.path.join(os.path.abspath(os.path.curdir), \"..\")) / \"data\""
31793179
]
31803180
},
31813181
{
@@ -3491,7 +3491,7 @@
34913491
"name": "python",
34923492
"nbconvert_exporter": "python",
34933493
"pygments_lexer": "ipython3",
3494-
"version": "3.10.5"
3494+
"version": "3.9.16"
34953495
}
34963496
},
34973497
"nbformat": 4,

2-mia-differential-privacy/3-Introducing-OPACUS.ipynb

Lines changed: 16 additions & 7 deletions
Large diffs are not rendered by default.

2-mia-differential-privacy/4-MIA-Training-OPACUS.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,7 +3099,7 @@
30993099
},
31003100
{
31013101
"cell_type": "code",
3102-
"execution_count": 2,
3102+
"execution_count": null,
31033103
"id": "439bc4c7-a72f-4a6c-81b0-0a54d062a676",
31043104
"metadata": {},
31053105
"outputs": [],
@@ -3421,7 +3421,7 @@
34213421
"name": "python",
34223422
"nbconvert_exporter": "python",
34233423
"pygments_lexer": "ipython3",
3424-
"version": "3.10.5"
3424+
"version": "3.9.16"
34253425
}
34263426
},
34273427
"nbformat": 4,

2-mia-differential-privacy/5-MIA-Reconstruction-OPACUS.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,7 +3099,7 @@
30993099
},
31003100
{
31013101
"cell_type": "code",
3102-
"execution_count": 2,
3102+
"execution_count": null,
31033103
"id": "94840512-1a02-4806-91a4-1a2ee8532b91",
31043104
"metadata": {},
31053105
"outputs": [],
@@ -3389,7 +3389,7 @@
33893389
"name": "python",
33903390
"nbconvert_exporter": "python",
33913391
"pygments_lexer": "ipython3",
3392-
"version": "3.10.5"
3392+
"version": "3.9.16"
33933393
}
33943394
},
33953395
"nbformat": 4,
80 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)