Merge pull request #107 from yrahal/main

Fixes 0.1/0.01 comment/code granularity mismatch in Notebooks/Chap01/1_1_BackgroundMathematics.ipynb
This commit is contained in:
udlbook
2023-12-10 14:42:49 +00:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -83,7 +83,7 @@
"source": [ "source": [
"# Plot the 1D linear function\n", "# Plot the 1D linear function\n",
"\n", "\n",
"# Define an array of x values from 0 to 10 with increments of 0.1\n", "# Define an array of x values from 0 to 10 with increments of 0.01\n",
"# https://numpy.org/doc/stable/reference/generated/numpy.arange.html\n", "# https://numpy.org/doc/stable/reference/generated/numpy.arange.html\n",
"x = np.arange(0.0,10.0, 0.01)\n", "x = np.arange(0.0,10.0, 0.01)\n",
"# Compute y using the function you filled in above\n", "# Compute y using the function you filled in above\n",
@@ -308,7 +308,7 @@
"source": [ "source": [
"# Draw the exponential function\n", "# Draw the exponential function\n",
"\n", "\n",
"# Define an array of x values from -5 to 5 with increments of 0.1\n", "# Define an array of x values from -5 to 5 with increments of 0.01\n",
"x = np.arange(-5.0,5.0, 0.01)\n", "x = np.arange(-5.0,5.0, 0.01)\n",
"y = np.exp(x) ;\n", "y = np.exp(x) ;\n",
"\n", "\n",
@@ -354,7 +354,7 @@
"source": [ "source": [
"# Draw the logarithm function\n", "# Draw the logarithm function\n",
"\n", "\n",
"# Define an array of x values from -5 to 5 with increments of 0.1\n", "# Define an array of x values from -5 to 5 with increments of 0.01\n",
"x = np.arange(0.01,5.0, 0.01)\n", "x = np.arange(0.01,5.0, 0.01)\n",
"y = np.log(x) ;\n", "y = np.log(x) ;\n",
"\n", "\n",

View File

@@ -182,7 +182,7 @@
{ {
"cell_type": "markdown", "cell_type": "markdown",
"source": [ "source": [
"Now we'll extend this model to have two outputs $y_1$ and $y_2$, each of which can be visualized with a separate heatmap. You will now have sets of parameters $\\phi_{10}, \\phi_{11},\\phi_{12}$ and $\\phi_{20}, \\phi_{21},\\phi_{22}$ that correspond to each of these outputs." "Now we'll extend this model to have two outputs $y_1$ and $y_2$, each of which can be visualized with a separate heatmap. You will now have sets of parameters $\\phi_{10}, \\phi_{11}, \\phi_{12}$, $\\phi_{13} and $\\phi_{20}, \\phi_{21}, \\phi_{22}$, \\phi_{23}$ that correspond to each of these outputs."
], ],
"metadata": { "metadata": {
"id": "Xl6LcrUyM7Lh" "id": "Xl6LcrUyM7Lh"