Created using Colaboratory

This commit is contained in:
udlbook
2022-10-18 10:23:51 +01:00
parent 680857f0b6
commit 94c4c4c0f9

View File

@@ -5,7 +5,7 @@
"colab": { "colab": {
"provenance": [], "provenance": [],
"collapsed_sections": [], "collapsed_sections": [],
"authorship_tag": "ABX9TyNg8z5TKbRHrYXsiWCEybnu", "authorship_tag": "ABX9TyO4Wn0t5/zNQK7Mjh6ATlij",
"include_colab_link": true "include_colab_link": true
}, },
"kernelspec": { "kernelspec": {
@@ -98,7 +98,6 @@
"cell_type": "code", "cell_type": "code",
"source": [ "source": [
"# # Plot the shallow neural network. We'll assume input in is range [-1,1] and output [-1,1]\n", "# # Plot the shallow neural network. We'll assume input in is range [-1,1] and output [-1,1]\n",
"# If the plot_all flag is set to true, then we'll plot all the intermediate stages as in Figure 3.3 \n",
"def plot_neural(x, y):\n", "def plot_neural(x, y):\n",
" fig, ax = plt.subplots()\n", " fig, ax = plt.subplots()\n",
" ax.plot(x.T,y.T)\n", " ax.plot(x.T,y.T)\n",