Created using Colaboratory

This commit is contained in:
udlbook
2023-10-18 08:48:11 +01:00
parent 8c0bec30ff
commit b419f52791

View File

@@ -4,7 +4,7 @@
"metadata": { "metadata": {
"colab": { "colab": {
"provenance": [], "provenance": [],
"authorship_tag": "ABX9TyMdflMfWi9hu9ZEg/80HCd8", "authorship_tag": "ABX9TyMGGNRd+xcxZ5fAgplmNBSW",
"include_colab_link": true "include_colab_link": true
}, },
"kernelspec": { "kernelspec": {
@@ -191,7 +191,7 @@
"cell_type": "code", "cell_type": "code",
"source": [ "source": [
"# Now let's compute and plot the number of regions as a function of the number of parameters as in figure 3.9b\n", "# Now let's compute and plot the number of regions as a function of the number of parameters as in figure 3.9b\n",
"# First let's write a function that computes the number of parameters as a function of the input dimension and number of hidden layers (assuming just one output)\n", "# First let's write a function that computes the number of parameters as a function of the input dimension and number of hidden units (assuming just one output)\n",
"\n", "\n",
"def number_parameters(D_i, D):\n", "def number_parameters(D_i, D):\n",
" # TODO -- replace this code with the proper calculation\n", " # TODO -- replace this code with the proper calculation\n",