Skip to content

Commit

Permalink
Update output of notebooks/influence_imagenet
Browse files Browse the repository at this point in the history
  • Loading branch information
schroedk committed Oct 5, 2023
1 parent 9429c3e commit 43c2231
Showing 1 changed file with 78 additions and 4 deletions.
82 changes: 78 additions & 4 deletions notebooks/influence_imagenet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,15 @@
"hide-output"
]
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Cached model found, loading...\n"
]
}
],
"source": [
"model_ft = new_resnet_model(output_size=len(label_names))\n",
"mgr = TrainingManager(\n",
Expand Down Expand Up @@ -398,7 +406,36 @@
"hide-output"
]
},
"outputs": [],
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "56845c326e4a42568b3015d2515146bc",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Batch Test Gradients: 0%| | 0/1 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f2e0028727ce4a0d804e03363dcac10f",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Batch Split Input Gradients: 0%| | 0/1 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"influences = compute_influences(\n",
" TorchTwiceDifferentiable(mgr.model, mgr.loss),\n",
Expand Down Expand Up @@ -691,7 +728,15 @@
"hide-output"
]
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Cached model found, loading...\n"
]
}
],
"source": [
"corrupted_model = new_resnet_model(output_size=len(label_names))\n",
"corrupted_dataset, corrupted_indices = corrupt_imagenet(\n",
Expand Down Expand Up @@ -792,7 +837,36 @@
"hide-output"
]
},
"outputs": [],
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0afacee322994491a310c3a2f6e5ffa0",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Batch Test Gradients: 0%| | 0/1 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "6b7fd714da8c4e16abf6bbeffae4f0b0",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Batch Split Input Gradients: 0%| | 0/1 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"influences = compute_influences(\n",
" TorchTwiceDifferentiable(mgr.model, mgr.loss),\n",
Expand Down

0 comments on commit 43c2231

Please sign in to comment.