diff --git a/README.md b/README.md index c878975..caa4e9d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ This is a GPU-hungry exercise so you're going to need all the GPU memory you can Next, run the setup script. It might take a few minutes. ``` cd 08_knowledge_extraction -sh setup.sh +bash setup.sh ``` This will: - Create a `conda` environment for this exercise diff --git a/exercise.ipynb b/exercise.ipynb index ce5541a..5d576c8 100644 --- a/exercise.ipynb +++ b/exercise.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "0cd70499", + "id": "3eb36dc6", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -29,7 +29,7 @@ }, { "cell_type": "markdown", - "id": "e52861f4", + "id": "cf36f499", "metadata": { "lines_to_next_cell": 0 }, @@ -41,7 +41,7 @@ }, { "cell_type": "markdown", - "id": "f698709b", + "id": "2672154c", "metadata": {}, "source": [ "\n", @@ -54,7 +54,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b1479afd", + "id": "14abc300", "metadata": { "lines_to_next_cell": 0 }, @@ -68,7 +68,7 @@ }, { "cell_type": "markdown", - "id": "c13bdaa6", + "id": "e9f2185a", "metadata": { "lines_to_next_cell": 0 }, @@ -84,7 +84,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e7a258c4", + "id": "9346f167", "metadata": {}, "outputs": [], "source": [ @@ -102,7 +102,7 @@ }, { "cell_type": "markdown", - "id": "25b44375", + "id": "f7cf5397", "metadata": { "lines_to_next_cell": 0 }, @@ -113,7 +113,7 @@ }, { "cell_type": "markdown", - "id": "7c65a197", + "id": "858554f1", "metadata": { "lines_to_next_cell": 0 }, @@ -130,7 +130,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c8d1b312", + "id": "d23e4a4e", "metadata": { "lines_to_next_cell": 0, "tags": [ @@ -155,7 +155,7 @@ }, { "cell_type": "markdown", - "id": "1f42db2b", + "id": "84932dc9", "metadata": { "lines_to_next_cell": 0 }, @@ -166,7 +166,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4608b115", + "id": "bb40f771", "metadata": {}, "outputs": [], "source": [ @@ -193,7 +193,7 @@ }, { "cell_type": "markdown", - "id": "32165b5c", + "id": "df3ad138", "metadata": {}, "source": [ "# Part 2: Using Integrated Gradients to find what the classifier knows\n", @@ -203,7 +203,7 @@ }, { "cell_type": "markdown", - "id": "ba1b31ba", + "id": "811d2301", "metadata": {}, "source": [ "## Attributions through integrated gradients\n", @@ -216,7 +216,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d4b61831", + "id": "798e37fa", "metadata": { "tags": [] }, @@ -234,7 +234,7 @@ }, { "cell_type": "markdown", - "id": "7ab9612b", + "id": "685001c7", "metadata": { "tags": [] }, @@ -250,7 +250,7 @@ { "cell_type": "code", "execution_count": null, - "id": "56e54423", + "id": "af5e8279", "metadata": { "tags": [ "task" @@ -271,7 +271,7 @@ { "cell_type": "code", "execution_count": null, - "id": "bb4628ed", + "id": "91f925b4", "metadata": { "tags": [] }, @@ -284,7 +284,7 @@ }, { "cell_type": "markdown", - "id": "99e4bafa", + "id": "0fda36e1", "metadata": { "lines_to_next_cell": 2, "tags": [] @@ -296,7 +296,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e915c3a4", + "id": "08ad72ed", "metadata": { "tags": [] }, @@ -324,7 +324,7 @@ { "cell_type": "code", "execution_count": null, - "id": "89222b41", + "id": "5ab9a9e8", "metadata": { "tags": [] }, @@ -337,7 +337,7 @@ }, { "cell_type": "markdown", - "id": "0b7e0279", + "id": "0eabbed2", "metadata": { "lines_to_next_cell": 2 }, @@ -351,7 +351,7 @@ }, { "cell_type": "markdown", - "id": "5d44c63e", + "id": "30ac6257", "metadata": { "lines_to_next_cell": 0 }, @@ -364,7 +364,7 @@ { "cell_type": "code", "execution_count": null, - "id": "615265b5", + "id": "d6581986", "metadata": {}, "outputs": [], "source": [ @@ -389,7 +389,7 @@ }, { "cell_type": "markdown", - "id": "852890c4", + "id": "ecb99195", "metadata": { "lines_to_next_cell": 0 }, @@ -403,7 +403,7 @@ }, { "cell_type": "markdown", - "id": "05113f49", + "id": "3e3a3495", "metadata": {}, "source": [ "\n", @@ -429,7 +429,7 @@ }, { "cell_type": "markdown", - "id": "a9133160", + "id": "6f87e727", "metadata": {}, "source": [ "

Task 2.3: Use random noise as a baseline

\n", @@ -441,7 +441,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c0db983b", + "id": "86c90bee", "metadata": { "tags": [ "task" @@ -462,7 +462,7 @@ }, { "cell_type": "markdown", - "id": "00e3a87f", + "id": "c6fc06a5", "metadata": { "tags": [] }, @@ -476,7 +476,7 @@ { "cell_type": "code", "execution_count": null, - "id": "df843b27", + "id": "f4fb3723", "metadata": { "tags": [ "task" @@ -499,7 +499,7 @@ }, { "cell_type": "markdown", - "id": "b3e583e7", + "id": "f81baa20", "metadata": { "tags": [] }, @@ -515,7 +515,7 @@ }, { "cell_type": "markdown", - "id": "82ccf036", + "id": "178bd1b4", "metadata": {}, "source": [ "

BONUS Task: Using different attributions.

\n", @@ -529,7 +529,7 @@ }, { "cell_type": "markdown", - "id": "f506bd2a", + "id": "7eda0573", "metadata": {}, "source": [ "

Checkpoint 2

\n", @@ -549,7 +549,7 @@ }, { "cell_type": "markdown", - "id": "74d9b907", + "id": "72c21607", "metadata": { "lines_to_next_cell": 0 }, @@ -577,7 +577,7 @@ }, { "cell_type": "markdown", - "id": "8f0154c0", + "id": "b97bba46", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -600,7 +600,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c2bc377c", + "id": "0333701f", "metadata": {}, "outputs": [], "source": [ @@ -632,7 +632,7 @@ }, { "cell_type": "markdown", - "id": "17cd1b0d", + "id": "00f93b6b", "metadata": { "lines_to_next_cell": 0 }, @@ -647,7 +647,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2c8b60ff", + "id": "930ccfa0", "metadata": { "lines_to_next_cell": 0, "tags": [ @@ -668,7 +668,7 @@ }, { "cell_type": "markdown", - "id": "1ca6e4be", + "id": "3debe8ce", "metadata": { "tags": [] }, @@ -683,7 +683,7 @@ }, { "cell_type": "markdown", - "id": "54be787f", + "id": "7c953e5d", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -700,7 +700,7 @@ { "cell_type": "code", "execution_count": null, - "id": "16be453b", + "id": "317f211d", "metadata": { "lines_to_next_cell": 0, "tags": [ @@ -714,7 +714,7 @@ }, { "cell_type": "markdown", - "id": "0f00b606", + "id": "978ac4f7", "metadata": { "lines_to_next_cell": 0 }, @@ -725,7 +725,7 @@ { "cell_type": "code", "execution_count": null, - "id": "3bb92ccb", + "id": "979b230c", "metadata": {}, "outputs": [], "source": [ @@ -735,7 +735,7 @@ }, { "cell_type": "markdown", - "id": "7aeb8a82", + "id": "e0787b89", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -753,7 +753,7 @@ { "cell_type": "code", "execution_count": null, - "id": "cc4f362f", + "id": "804a2130", "metadata": { "lines_to_next_cell": 0 }, @@ -765,7 +765,7 @@ }, { "cell_type": "markdown", - "id": "2f966930", + "id": "ccb3e2b1", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -784,7 +784,7 @@ { "cell_type": "code", "execution_count": null, - "id": "67bfde3a", + "id": "e3ee8c17", "metadata": {}, "outputs": [], "source": [ @@ -793,7 +793,7 @@ }, { "cell_type": "markdown", - "id": "805cb84f", + "id": "9a8f36ae", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -809,7 +809,7 @@ { "cell_type": "code", "execution_count": null, - "id": "da81d292", + "id": "127df132", "metadata": {}, "outputs": [], "source": [ @@ -818,7 +818,7 @@ }, { "cell_type": "markdown", - "id": "72ac929b", + "id": "22f6ae4f", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -830,7 +830,7 @@ { "cell_type": "code", "execution_count": null, - "id": "bf33a81f", + "id": "b87529fb", "metadata": {}, "outputs": [], "source": [ @@ -843,7 +843,7 @@ }, { "cell_type": "markdown", - "id": "3c5bc41a", + "id": "4cb47870", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -857,7 +857,7 @@ { "cell_type": "code", "execution_count": null, - "id": "152f772e", + "id": "13a45880", "metadata": {}, "outputs": [], "source": [ @@ -869,7 +869,7 @@ }, { "cell_type": "markdown", - "id": "b230f596", + "id": "9f15c007", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -889,7 +889,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1d598293", + "id": "fa070be6", "metadata": {}, "outputs": [], "source": [ @@ -913,7 +913,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8bc8455f", + "id": "2ad6071c", "metadata": {}, "outputs": [], "source": [ @@ -923,7 +923,7 @@ }, { "cell_type": "markdown", - "id": "35f24ab8", + "id": "8bd3806e", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -945,7 +945,7 @@ }, { "cell_type": "markdown", - "id": "b432475d", + "id": "a367925e", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -957,7 +957,7 @@ { "cell_type": "code", "execution_count": null, - "id": "cc2b5272", + "id": "347e72f3", "metadata": { "lines_to_next_cell": 0, "tags": [ @@ -1068,7 +1068,7 @@ }, { "cell_type": "markdown", - "id": "90d6b878", + "id": "5df49703", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1080,7 +1080,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fb7244dc", + "id": "91c819b1", "metadata": {}, "outputs": [], "source": [ @@ -1096,7 +1096,7 @@ }, { "cell_type": "markdown", - "id": "4f17ac64", + "id": "892bb751", "metadata": { "tags": [] }, @@ -1111,7 +1111,7 @@ }, { "cell_type": "markdown", - "id": "b87acfd6", + "id": "d3e8051b", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1123,7 +1123,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d4f1527e", + "id": "aaa41b36", "metadata": {}, "outputs": [], "source": [ @@ -1145,7 +1145,7 @@ }, { "cell_type": "markdown", - "id": "da2eec51", + "id": "25590b21", "metadata": { "tags": [] }, @@ -1161,7 +1161,7 @@ }, { "cell_type": "markdown", - "id": "6b888bad", + "id": "ac281344", "metadata": { "tags": [] }, @@ -1171,7 +1171,7 @@ }, { "cell_type": "markdown", - "id": "0385b4d1", + "id": "b6eaa388", "metadata": { "tags": [] }, @@ -1188,7 +1188,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8b7da4f3", + "id": "ce31088a", "metadata": { "title": "Loading the test dataset" }, @@ -1208,7 +1208,7 @@ }, { "cell_type": "markdown", - "id": "6ac8e50b", + "id": "dadc4a40", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1220,7 +1220,7 @@ { "cell_type": "code", "execution_count": null, - "id": "aafb5d05", + "id": "592f3bbf", "metadata": {}, "outputs": [], "source": [ @@ -1233,7 +1233,7 @@ }, { "cell_type": "markdown", - "id": "a008f00c", + "id": "fd05abcd", "metadata": { "lines_to_next_cell": 0 }, @@ -1243,7 +1243,7 @@ }, { "cell_type": "markdown", - "id": "20ba52e7", + "id": "d70cf377", "metadata": { "lines_to_next_cell": 0 }, @@ -1261,7 +1261,7 @@ { "cell_type": "code", "execution_count": null, - "id": "6b78fa30", + "id": "e4138b77", "metadata": { "lines_to_next_cell": 0, "tags": [ @@ -1297,7 +1297,7 @@ }, { "cell_type": "markdown", - "id": "87a8a781", + "id": "00833090", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1309,7 +1309,7 @@ { "cell_type": "code", "execution_count": null, - "id": "43274b3a", + "id": "7cc45853", "metadata": {}, "outputs": [], "source": [ @@ -1322,7 +1322,7 @@ }, { "cell_type": "markdown", - "id": "24edc4de", + "id": "4243f18d", "metadata": { "tags": [] }, @@ -1337,7 +1337,7 @@ }, { "cell_type": "markdown", - "id": "84bf4585", + "id": "c0027712", "metadata": { "tags": [] }, @@ -1348,7 +1348,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9727ac14", + "id": "77fa49cd", "metadata": {}, "outputs": [], "source": [ @@ -1362,7 +1362,7 @@ }, { "cell_type": "markdown", - "id": "bf5f0ebe", + "id": "5b53d1fd", "metadata": { "tags": [] }, @@ -1377,7 +1377,7 @@ }, { "cell_type": "markdown", - "id": "2f1b0de9", + "id": "7e23ff21", "metadata": { "lines_to_next_cell": 0 }, @@ -1392,7 +1392,7 @@ { "cell_type": "code", "execution_count": null, - "id": "3e5a4dce", + "id": "c01862a1", "metadata": {}, "outputs": [], "source": [ @@ -1413,7 +1413,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8118b6af", + "id": "5d9ba6f7", "metadata": { "title": "Another visualization function" }, @@ -1442,7 +1442,7 @@ { "cell_type": "code", "execution_count": null, - "id": "0e912b30", + "id": "65990a9d", "metadata": { "lines_to_next_cell": 0 }, @@ -1458,7 +1458,7 @@ }, { "cell_type": "markdown", - "id": "0239083c", + "id": "01a072ca", "metadata": { "lines_to_next_cell": 0 }, @@ -1474,7 +1474,7 @@ }, { "cell_type": "markdown", - "id": "a24b6aec", + "id": "8a3dc15b", "metadata": { "lines_to_next_cell": 0 }, @@ -1489,7 +1489,7 @@ }, { "cell_type": "markdown", - "id": "efd1a28b", + "id": "41ec67c7", "metadata": { "lines_to_next_cell": 0 }, @@ -1503,7 +1503,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b7f80588", + "id": "10338bac", "metadata": { "lines_to_next_cell": 0 }, @@ -1523,7 +1523,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c497452f", + "id": "8bb78e5c", "metadata": { "lines_to_next_cell": 0 }, @@ -1559,7 +1559,7 @@ }, { "cell_type": "markdown", - "id": "43ede07a", + "id": "57fed3c6", "metadata": { "lines_to_next_cell": 0 }, @@ -1573,7 +1573,7 @@ }, { "cell_type": "markdown", - "id": "c13ce4e4", + "id": "79237c1a", "metadata": { "lines_to_next_cell": 0 }, @@ -1589,7 +1589,7 @@ }, { "cell_type": "markdown", - "id": "bf3287fb", + "id": "ffd9cfa3", "metadata": { "lines_to_next_cell": 0 }, @@ -1605,7 +1605,7 @@ }, { "cell_type": "markdown", - "id": "ed13c1f9", + "id": "84fc1898", "metadata": { "lines_to_next_cell": 0 }, @@ -1628,7 +1628,7 @@ }, { "cell_type": "markdown", - "id": "ecb17e01", + "id": "46b4d6c0", "metadata": {}, "source": [ "

Task 5.1: Explore the style space

\n", @@ -1640,7 +1640,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e97ffac7", + "id": "6b2e6961", "metadata": {}, "outputs": [], "source": [ @@ -1675,7 +1675,7 @@ }, { "cell_type": "markdown", - "id": "d741ca91", + "id": "d2f1f511", "metadata": { "lines_to_next_cell": 0 }, @@ -1691,7 +1691,7 @@ { "cell_type": "code", "execution_count": null, - "id": "bf0fd38b", + "id": "9ade668d", "metadata": { "lines_to_next_cell": 0 }, @@ -1718,7 +1718,7 @@ }, { "cell_type": "markdown", - "id": "cad404f2", + "id": "4b30e05f", "metadata": { "lines_to_next_cell": 0 }, @@ -1732,7 +1732,7 @@ }, { "cell_type": "markdown", - "id": "9b28eccc", + "id": "076a1382", "metadata": { "lines_to_next_cell": 0 }, @@ -1749,7 +1749,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1c3f1744", + "id": "cba1aca3", "metadata": {}, "outputs": [], "source": [ @@ -1772,7 +1772,7 @@ { "cell_type": "code", "execution_count": null, - "id": "304baabb", + "id": "4d50724e", "metadata": { "lines_to_next_cell": 0 }, @@ -1781,7 +1781,7 @@ }, { "cell_type": "markdown", - "id": "3c35b725", + "id": "8ccb30e6", "metadata": {}, "source": [ "

Questions

\n", @@ -1793,7 +1793,7 @@ }, { "cell_type": "markdown", - "id": "1b0a418f", + "id": "c7bbf446", "metadata": {}, "source": [ "

Checkpoint 5

\n", @@ -1811,7 +1811,7 @@ }, { "cell_type": "markdown", - "id": "6d2115d5", + "id": "6a427a76", "metadata": { "lines_to_next_cell": 0 }, diff --git a/setup.sh b/setup.sh index 22009e7..af633c7 100755 --- a/setup.sh +++ b/setup.sh @@ -4,12 +4,15 @@ conda create -n 08_knowledge_extraction -y python=3.11 eval "$(conda shell.bash hook)" conda activate 08_knowledge_extraction # Check if the environment is activated -echo "Environment activated: $(which python)" - +if [[ "$CONDA_DEFAULT_ENV" == "08_knowledge_extraction" ]]; then + echo "Environment activated successfully for package installation" +else + echo "Failed to activate environment for package installation. Dependencies not installed!" + exit +fi +echo "Training classifier model" conda install -y pytorch torchvision pytorch-cuda=12.1 -c pytorch -c nvidia pip install -r requirements.txt - -echo "Training classifier model" python extras/train_classifier.py conda deactivate diff --git a/solution.ipynb b/solution.ipynb index f890a5b..eb9f116 100644 --- a/solution.ipynb +++ b/solution.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "0cd70499", + "id": "3eb36dc6", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -29,7 +29,7 @@ }, { "cell_type": "markdown", - "id": "e52861f4", + "id": "cf36f499", "metadata": { "lines_to_next_cell": 0 }, @@ -41,7 +41,7 @@ }, { "cell_type": "markdown", - "id": "f698709b", + "id": "2672154c", "metadata": {}, "source": [ "\n", @@ -54,7 +54,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b1479afd", + "id": "14abc300", "metadata": { "lines_to_next_cell": 0 }, @@ -68,7 +68,7 @@ }, { "cell_type": "markdown", - "id": "c13bdaa6", + "id": "e9f2185a", "metadata": { "lines_to_next_cell": 0 }, @@ -84,7 +84,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e7a258c4", + "id": "9346f167", "metadata": {}, "outputs": [], "source": [ @@ -102,7 +102,7 @@ }, { "cell_type": "markdown", - "id": "25b44375", + "id": "f7cf5397", "metadata": { "lines_to_next_cell": 0 }, @@ -113,7 +113,7 @@ }, { "cell_type": "markdown", - "id": "7c65a197", + "id": "858554f1", "metadata": { "lines_to_next_cell": 0 }, @@ -130,7 +130,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7981af9b", + "id": "9b5848cc", "metadata": { "tags": [ "solution" @@ -154,7 +154,7 @@ }, { "cell_type": "markdown", - "id": "1f42db2b", + "id": "84932dc9", "metadata": { "lines_to_next_cell": 0 }, @@ -165,7 +165,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4608b115", + "id": "bb40f771", "metadata": {}, "outputs": [], "source": [ @@ -192,7 +192,7 @@ }, { "cell_type": "markdown", - "id": "32165b5c", + "id": "df3ad138", "metadata": {}, "source": [ "# Part 2: Using Integrated Gradients to find what the classifier knows\n", @@ -202,7 +202,7 @@ }, { "cell_type": "markdown", - "id": "ba1b31ba", + "id": "811d2301", "metadata": {}, "source": [ "## Attributions through integrated gradients\n", @@ -215,7 +215,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d4b61831", + "id": "798e37fa", "metadata": { "tags": [] }, @@ -233,7 +233,7 @@ }, { "cell_type": "markdown", - "id": "7ab9612b", + "id": "685001c7", "metadata": { "tags": [] }, @@ -249,7 +249,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c04d8612", + "id": "74b2e4bf", "metadata": { "tags": [ "solution" @@ -273,7 +273,7 @@ { "cell_type": "code", "execution_count": null, - "id": "bb4628ed", + "id": "91f925b4", "metadata": { "tags": [] }, @@ -286,7 +286,7 @@ }, { "cell_type": "markdown", - "id": "99e4bafa", + "id": "0fda36e1", "metadata": { "lines_to_next_cell": 2, "tags": [] @@ -298,7 +298,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e915c3a4", + "id": "08ad72ed", "metadata": { "tags": [] }, @@ -326,7 +326,7 @@ { "cell_type": "code", "execution_count": null, - "id": "89222b41", + "id": "5ab9a9e8", "metadata": { "tags": [] }, @@ -339,7 +339,7 @@ }, { "cell_type": "markdown", - "id": "0b7e0279", + "id": "0eabbed2", "metadata": { "lines_to_next_cell": 2 }, @@ -353,7 +353,7 @@ }, { "cell_type": "markdown", - "id": "5d44c63e", + "id": "30ac6257", "metadata": { "lines_to_next_cell": 0 }, @@ -366,7 +366,7 @@ { "cell_type": "code", "execution_count": null, - "id": "615265b5", + "id": "d6581986", "metadata": {}, "outputs": [], "source": [ @@ -391,7 +391,7 @@ }, { "cell_type": "markdown", - "id": "852890c4", + "id": "ecb99195", "metadata": { "lines_to_next_cell": 0 }, @@ -405,7 +405,7 @@ }, { "cell_type": "markdown", - "id": "05113f49", + "id": "3e3a3495", "metadata": {}, "source": [ "\n", @@ -431,7 +431,7 @@ }, { "cell_type": "markdown", - "id": "a9133160", + "id": "6f87e727", "metadata": {}, "source": [ "

Task 2.3: Use random noise as a baseline

\n", @@ -443,7 +443,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f15bb708", + "id": "7dcd798f", "metadata": { "tags": [ "solution" @@ -469,7 +469,7 @@ }, { "cell_type": "markdown", - "id": "00e3a87f", + "id": "c6fc06a5", "metadata": { "tags": [] }, @@ -483,7 +483,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c36a01c0", + "id": "2c818532", "metadata": { "tags": [ "solution" @@ -511,7 +511,7 @@ }, { "cell_type": "markdown", - "id": "b3e583e7", + "id": "f81baa20", "metadata": { "tags": [] }, @@ -527,7 +527,7 @@ }, { "cell_type": "markdown", - "id": "82ccf036", + "id": "178bd1b4", "metadata": {}, "source": [ "

BONUS Task: Using different attributions.

\n", @@ -541,7 +541,7 @@ }, { "cell_type": "markdown", - "id": "f506bd2a", + "id": "7eda0573", "metadata": {}, "source": [ "

Checkpoint 2

\n", @@ -561,7 +561,7 @@ }, { "cell_type": "markdown", - "id": "74d9b907", + "id": "72c21607", "metadata": { "lines_to_next_cell": 0 }, @@ -589,7 +589,7 @@ }, { "cell_type": "markdown", - "id": "8f0154c0", + "id": "b97bba46", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -612,7 +612,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c2bc377c", + "id": "0333701f", "metadata": {}, "outputs": [], "source": [ @@ -644,7 +644,7 @@ }, { "cell_type": "markdown", - "id": "17cd1b0d", + "id": "00f93b6b", "metadata": { "lines_to_next_cell": 0 }, @@ -659,7 +659,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b6a4aa29", + "id": "f1ad305c", "metadata": { "tags": [ "solution" @@ -676,7 +676,7 @@ }, { "cell_type": "markdown", - "id": "1ca6e4be", + "id": "3debe8ce", "metadata": { "tags": [] }, @@ -691,7 +691,7 @@ }, { "cell_type": "markdown", - "id": "54be787f", + "id": "7c953e5d", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -708,7 +708,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7690e5ae", + "id": "4e1d2335", "metadata": { "lines_to_next_cell": 0, "tags": [ @@ -722,7 +722,7 @@ }, { "cell_type": "markdown", - "id": "0f00b606", + "id": "978ac4f7", "metadata": { "lines_to_next_cell": 0 }, @@ -733,7 +733,7 @@ { "cell_type": "code", "execution_count": null, - "id": "3bb92ccb", + "id": "979b230c", "metadata": {}, "outputs": [], "source": [ @@ -743,7 +743,7 @@ }, { "cell_type": "markdown", - "id": "7aeb8a82", + "id": "e0787b89", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -761,7 +761,7 @@ { "cell_type": "code", "execution_count": null, - "id": "cc4f362f", + "id": "804a2130", "metadata": { "lines_to_next_cell": 0 }, @@ -773,7 +773,7 @@ }, { "cell_type": "markdown", - "id": "2f966930", + "id": "ccb3e2b1", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -792,7 +792,7 @@ { "cell_type": "code", "execution_count": null, - "id": "67bfde3a", + "id": "e3ee8c17", "metadata": {}, "outputs": [], "source": [ @@ -801,7 +801,7 @@ }, { "cell_type": "markdown", - "id": "805cb84f", + "id": "9a8f36ae", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -817,7 +817,7 @@ { "cell_type": "code", "execution_count": null, - "id": "da81d292", + "id": "127df132", "metadata": {}, "outputs": [], "source": [ @@ -826,7 +826,7 @@ }, { "cell_type": "markdown", - "id": "72ac929b", + "id": "22f6ae4f", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -838,7 +838,7 @@ { "cell_type": "code", "execution_count": null, - "id": "bf33a81f", + "id": "b87529fb", "metadata": {}, "outputs": [], "source": [ @@ -851,7 +851,7 @@ }, { "cell_type": "markdown", - "id": "3c5bc41a", + "id": "4cb47870", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -865,7 +865,7 @@ { "cell_type": "code", "execution_count": null, - "id": "152f772e", + "id": "13a45880", "metadata": {}, "outputs": [], "source": [ @@ -877,7 +877,7 @@ }, { "cell_type": "markdown", - "id": "b230f596", + "id": "9f15c007", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -897,7 +897,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1d598293", + "id": "fa070be6", "metadata": {}, "outputs": [], "source": [ @@ -921,7 +921,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8bc8455f", + "id": "2ad6071c", "metadata": {}, "outputs": [], "source": [ @@ -931,7 +931,7 @@ }, { "cell_type": "markdown", - "id": "35f24ab8", + "id": "8bd3806e", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -953,7 +953,7 @@ }, { "cell_type": "markdown", - "id": "b432475d", + "id": "a367925e", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -965,7 +965,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7621dcd3", + "id": "fd34b2d0", "metadata": { "lines_to_next_cell": 2, "tags": [ @@ -1035,7 +1035,7 @@ }, { "cell_type": "markdown", - "id": "90d6b878", + "id": "5df49703", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1047,7 +1047,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fb7244dc", + "id": "91c819b1", "metadata": {}, "outputs": [], "source": [ @@ -1063,7 +1063,7 @@ }, { "cell_type": "markdown", - "id": "4f17ac64", + "id": "892bb751", "metadata": { "tags": [] }, @@ -1078,7 +1078,7 @@ }, { "cell_type": "markdown", - "id": "b87acfd6", + "id": "d3e8051b", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1090,7 +1090,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d4f1527e", + "id": "aaa41b36", "metadata": {}, "outputs": [], "source": [ @@ -1112,7 +1112,7 @@ }, { "cell_type": "markdown", - "id": "da2eec51", + "id": "25590b21", "metadata": { "tags": [] }, @@ -1128,7 +1128,7 @@ }, { "cell_type": "markdown", - "id": "6b888bad", + "id": "ac281344", "metadata": { "tags": [] }, @@ -1138,7 +1138,7 @@ }, { "cell_type": "markdown", - "id": "0385b4d1", + "id": "b6eaa388", "metadata": { "tags": [] }, @@ -1155,7 +1155,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8b7da4f3", + "id": "ce31088a", "metadata": { "title": "Loading the test dataset" }, @@ -1175,7 +1175,7 @@ }, { "cell_type": "markdown", - "id": "6ac8e50b", + "id": "dadc4a40", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1187,7 +1187,7 @@ { "cell_type": "code", "execution_count": null, - "id": "aafb5d05", + "id": "592f3bbf", "metadata": {}, "outputs": [], "source": [ @@ -1200,7 +1200,7 @@ }, { "cell_type": "markdown", - "id": "a008f00c", + "id": "fd05abcd", "metadata": { "lines_to_next_cell": 0 }, @@ -1210,7 +1210,7 @@ }, { "cell_type": "markdown", - "id": "20ba52e7", + "id": "d70cf377", "metadata": { "lines_to_next_cell": 0 }, @@ -1228,7 +1228,7 @@ { "cell_type": "code", "execution_count": null, - "id": "49019db6", + "id": "4da4cef1", "metadata": { "tags": [ "solution" @@ -1265,7 +1265,7 @@ }, { "cell_type": "markdown", - "id": "87a8a781", + "id": "00833090", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1277,7 +1277,7 @@ { "cell_type": "code", "execution_count": null, - "id": "43274b3a", + "id": "7cc45853", "metadata": {}, "outputs": [], "source": [ @@ -1290,7 +1290,7 @@ }, { "cell_type": "markdown", - "id": "24edc4de", + "id": "4243f18d", "metadata": { "tags": [] }, @@ -1305,7 +1305,7 @@ }, { "cell_type": "markdown", - "id": "84bf4585", + "id": "c0027712", "metadata": { "tags": [] }, @@ -1316,7 +1316,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9727ac14", + "id": "77fa49cd", "metadata": {}, "outputs": [], "source": [ @@ -1330,7 +1330,7 @@ }, { "cell_type": "markdown", - "id": "bf5f0ebe", + "id": "5b53d1fd", "metadata": { "tags": [] }, @@ -1345,7 +1345,7 @@ }, { "cell_type": "markdown", - "id": "2f1b0de9", + "id": "7e23ff21", "metadata": { "lines_to_next_cell": 0 }, @@ -1360,7 +1360,7 @@ { "cell_type": "code", "execution_count": null, - "id": "3e5a4dce", + "id": "c01862a1", "metadata": {}, "outputs": [], "source": [ @@ -1381,7 +1381,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8118b6af", + "id": "5d9ba6f7", "metadata": { "title": "Another visualization function" }, @@ -1410,7 +1410,7 @@ { "cell_type": "code", "execution_count": null, - "id": "0e912b30", + "id": "65990a9d", "metadata": { "lines_to_next_cell": 0 }, @@ -1426,7 +1426,7 @@ }, { "cell_type": "markdown", - "id": "0239083c", + "id": "01a072ca", "metadata": { "lines_to_next_cell": 0 }, @@ -1442,7 +1442,7 @@ }, { "cell_type": "markdown", - "id": "a24b6aec", + "id": "8a3dc15b", "metadata": { "lines_to_next_cell": 0 }, @@ -1457,7 +1457,7 @@ }, { "cell_type": "markdown", - "id": "efd1a28b", + "id": "41ec67c7", "metadata": { "lines_to_next_cell": 0 }, @@ -1471,7 +1471,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b7f80588", + "id": "10338bac", "metadata": { "lines_to_next_cell": 0 }, @@ -1491,7 +1491,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c497452f", + "id": "8bb78e5c", "metadata": { "lines_to_next_cell": 0 }, @@ -1527,7 +1527,7 @@ }, { "cell_type": "markdown", - "id": "43ede07a", + "id": "57fed3c6", "metadata": { "lines_to_next_cell": 0 }, @@ -1541,7 +1541,7 @@ }, { "cell_type": "markdown", - "id": "c13ce4e4", + "id": "79237c1a", "metadata": { "lines_to_next_cell": 0 }, @@ -1557,7 +1557,7 @@ }, { "cell_type": "markdown", - "id": "bf3287fb", + "id": "ffd9cfa3", "metadata": { "lines_to_next_cell": 0 }, @@ -1573,7 +1573,7 @@ }, { "cell_type": "markdown", - "id": "ed13c1f9", + "id": "84fc1898", "metadata": { "lines_to_next_cell": 0 }, @@ -1596,7 +1596,7 @@ }, { "cell_type": "markdown", - "id": "ecb17e01", + "id": "46b4d6c0", "metadata": {}, "source": [ "

Task 5.1: Explore the style space

\n", @@ -1608,7 +1608,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e97ffac7", + "id": "6b2e6961", "metadata": {}, "outputs": [], "source": [ @@ -1643,7 +1643,7 @@ }, { "cell_type": "markdown", - "id": "d741ca91", + "id": "d2f1f511", "metadata": { "lines_to_next_cell": 0 }, @@ -1659,7 +1659,7 @@ { "cell_type": "code", "execution_count": null, - "id": "bf0fd38b", + "id": "9ade668d", "metadata": { "lines_to_next_cell": 0 }, @@ -1686,7 +1686,7 @@ }, { "cell_type": "markdown", - "id": "cad404f2", + "id": "4b30e05f", "metadata": { "lines_to_next_cell": 0 }, @@ -1700,7 +1700,7 @@ }, { "cell_type": "markdown", - "id": "9b28eccc", + "id": "076a1382", "metadata": { "lines_to_next_cell": 0 }, @@ -1717,7 +1717,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1c3f1744", + "id": "cba1aca3", "metadata": {}, "outputs": [], "source": [ @@ -1740,7 +1740,7 @@ { "cell_type": "code", "execution_count": null, - "id": "304baabb", + "id": "4d50724e", "metadata": { "lines_to_next_cell": 0 }, @@ -1749,7 +1749,7 @@ }, { "cell_type": "markdown", - "id": "3c35b725", + "id": "8ccb30e6", "metadata": {}, "source": [ "

Questions

\n", @@ -1761,7 +1761,7 @@ }, { "cell_type": "markdown", - "id": "1b0a418f", + "id": "c7bbf446", "metadata": {}, "source": [ "

Checkpoint 5

\n", @@ -1779,7 +1779,7 @@ }, { "cell_type": "markdown", - "id": "6d2115d5", + "id": "6a427a76", "metadata": { "lines_to_next_cell": 0 }, @@ -1801,7 +1801,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1d4445b6", + "id": "6b5d309f", "metadata": { "tags": [ "solution"