Update CM20315_Shallow.ipynb

Fixed some typos in the last (optional) part.
This commit is contained in:
udlbook
2022-10-11 10:40:51 +01:00
committed by GitHub
parent a81a86d2ff
commit 8aef7cc546

View File

@@ -569,11 +569,11 @@
{
"cell_type": "code",
"source": [
"# Define a shallow neural network with, one input, one output, and three hidden units\n",
"# Define a shallow neural network with, two inputs, one output, and three hidden units\n",
"def shallow_2_1_3(x1,x2, activation_fn, phi_0,phi_1,phi_2,phi_3, theta_10, theta_11,\\\n",
" theta_12, theta_20, theta_21, theta_22, theta_30, theta_31, theta_32):\n",
" # TODO Replace the lines below to compute the three initial lines \n",
" # (figure 3.3a-c) from the theta parameters. These are the preactivations\n",
" # TODO Replace the lines below to compute the three initial linear functions \n",
" # (figure 3.8a-c) from the theta parameters. These are the preactivations\n",
" pre_1 = np.zeros_like(x1)\n",
" pre_2 = np.zeros_like(x1)\n",
" pre_3 = np.zeros_like(x1)\n",