Skip to content

Commit 1cd1d06

Browse files
committed
changing loss visualization
1 parent 715106b commit 1cd1d06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lab2/solutions/Part2_Debiasing_Solution.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,11 +1344,15 @@
13441344
"for i in range(1, 6):\n",
13451345
" axs[i - 1].imshow(test_faces[- 1 * i])\n",
13461346
" axs[i - 1].set_title(round(vae_loss.numpy()[-1 * i], 7))\n",
1347+
"print(\"Samples with the highest reconstruction loss\")\n",
1348+
"plt.show()\n",
13471349
"\n",
13481350
"fig, axs = plt.subplots(1, 5)\n",
13491351
"for i in range(5):\n",
13501352
" axs[i].imshow(test_faces[i])\n",
1351-
" axs[i].set_title(round(vae_loss.numpy()[i], 7))"
1353+
" axs[i].set_title(round(vae_loss.numpy()[i], 7))\n",
1354+
"print(\"Samples with the lowest reconstruction loss\")\n",
1355+
"plt.show()"
13521356
]
13531357
},
13541358
{

0 commit comments

Comments
 (0)