diff --git a/doc/pub/week41/html/._week41-bs029.html b/doc/pub/week41/html/._week41-bs029.html index a5a0d6cff..d324b4e5b 100644 --- a/doc/pub/week41/html/._week41-bs029.html +++ b/doc/pub/week41/html/._week41-bs029.html @@ -358,6 +358,7 @@ $$ 1 & 1 \end{bmatrix}, $$ +

while the vector of outputs is \( \boldsymbol{y}^T=[0,1,1,0] \) for the XOR gate, \( \boldsymbol{y}^T=[0,0,0,1] \) for the AND gate and \( \boldsymbol{y}^T=[0,1,1,1] \) for the OR gate.

diff --git a/doc/pub/week41/html/week41-reveal.html b/doc/pub/week41/html/week41-reveal.html index 8ec3b5700..7d3d42ce7 100644 --- a/doc/pub/week41/html/week41-reveal.html +++ b/doc/pub/week41/html/week41-reveal.html @@ -1543,6 +1543,7 @@ $$ $$

 
+

while the vector of outputs is \( \boldsymbol{y}^T=[0,1,1,0] \) for the XOR gate, \( \boldsymbol{y}^T=[0,0,0,1] \) for the AND gate and \( \boldsymbol{y}^T=[0,1,1,1] \) for the OR gate. diff --git a/doc/pub/week41/html/week41-solarized.html b/doc/pub/week41/html/week41-solarized.html index 2d5981bde..f9c87cd57 100644 --- a/doc/pub/week41/html/week41-solarized.html +++ b/doc/pub/week41/html/week41-solarized.html @@ -1552,6 +1552,7 @@ $$ 1 & 1 \end{bmatrix}, $$ +

while the vector of outputs is \( \boldsymbol{y}^T=[0,1,1,0] \) for the XOR gate, \( \boldsymbol{y}^T=[0,0,0,1] \) for the AND gate and \( \boldsymbol{y}^T=[0,1,1,1] \) for the OR gate.

diff --git a/doc/pub/week41/html/week41.html b/doc/pub/week41/html/week41.html index d5f5402c0..fa8aa6fff 100644 --- a/doc/pub/week41/html/week41.html +++ b/doc/pub/week41/html/week41.html @@ -1557,6 +1557,7 @@ $$ 1 & 1 \end{bmatrix}, $$ +

while the vector of outputs is \( \boldsymbol{y}^T=[0,1,1,0] \) for the XOR gate, \( \boldsymbol{y}^T=[0,0,0,1] \) for the AND gate and \( \boldsymbol{y}^T=[0,1,1,1] \) for the OR gate.

diff --git a/doc/pub/week41/ipynb/ipynb-week41-src.tar.gz b/doc/pub/week41/ipynb/ipynb-week41-src.tar.gz index b7245f60f..982c965be 100644 Binary files a/doc/pub/week41/ipynb/ipynb-week41-src.tar.gz and b/doc/pub/week41/ipynb/ipynb-week41-src.tar.gz differ diff --git a/doc/pub/week41/ipynb/week41.ipynb b/doc/pub/week41/ipynb/week41.ipynb index 2112445d8..2b32f0a7d 100644 --- a/doc/pub/week41/ipynb/week41.ipynb +++ b/doc/pub/week41/ipynb/week41.ipynb @@ -1555,7 +1555,6 @@ }, "outputs": [], "source": [ - "\n", "# import necessary packages\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", diff --git a/doc/src/week41/week41.do.txt b/doc/src/week41/week41.do.txt index 6d143cefd..bb031c117 100644 --- a/doc/src/week41/week41.do.txt +++ b/doc/src/week41/week41.do.txt @@ -1120,6 +1120,7 @@ Our design matrix is defined by the input values $x_1$ and $x_2$. Since we have 1 & 0 \\ 1 & 1 \end{bmatrix}, !et + while the vector of outputs is $\bm{y}^T=[0,1,1,0]$ for the XOR gate, $\bm{y}^T=[0,0,0,1]$ for the AND gate and $\bm{y}^T=[0,1,1,1]$ for the OR gate. !split @@ -1195,13 +1196,13 @@ predictions = predict(X) print(predictions) !ec + Not an impressive result, but this was our first forward pass with randomly assigned weights. Let us now add the full network with the back-propagation algorithm discussed above. !split ===== The Code using Scikit-Learn ===== !bc pycod - # import necessary packages import numpy as np import matplotlib.pyplot as plt