Created using Colab

This commit is contained in:
udlbook
2024-04-18 16:08:28 -04:00
parent c9679dee90
commit 8fe07cf0fb

View File

@@ -4,7 +4,7 @@
"metadata": { "metadata": {
"colab": { "colab": {
"provenance": [], "provenance": [],
"authorship_tag": "ABX9TyMLKg5ZmXqojcVrZD5BGm9g", "authorship_tag": "ABX9TyP3VmRg51U+7NCfSYjRRrgv",
"include_colab_link": true "include_colab_link": true
}, },
"kernelspec": { "kernelspec": {
@@ -267,8 +267,8 @@
" fig,ax = plt.subplots()\n", " fig,ax = plt.subplots()\n",
" ax.plot(np.squeeze(x_in), np.squeeze(dydx), 'b-')\n", " ax.plot(np.squeeze(x_in), np.squeeze(dydx), 'b-')\n",
" ax.set_xlim(-2,2)\n", " ax.set_xlim(-2,2)\n",
" ax.set_xlabel('Input, $x$')\n", " ax.set_xlabel(r'Input, $x$')\n",
" ax.set_ylabel('Gradient, $dy/dx$')\n", " ax.set_ylabel(r'Gradient, $dy/dx$')\n",
" ax.set_title('No layers = %d'%(K))\n", " ax.set_title('No layers = %d'%(K))\n",
" plt.show()" " plt.show()"
], ],