Created using Colaboratory

This commit is contained in:
udlbook
2023-10-26 17:51:07 +01:00
parent 4d0825ef42
commit fd1844ed44

View File

@@ -4,7 +4,7 @@
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyOVTohDBtmCCzSEqLJ4J9R/",
"authorship_tag": "ABX9TyPNAZtbS+8jYc+tZqhDHNev",
"include_colab_link": true
},
"kernelspec": {
@@ -68,7 +68,7 @@
" return activation\n",
"\n",
"# Define a shallow neural network\n",
"def shallow_nn(x, beta_0, omega_0, beta_1, omaga_1):\n",
"def shallow_nn(x, beta_0, omega_0, beta_1, omega_1):\n",
" # Make sure that input data is (1 x n_data) array\n",
" n_data = x.size\n",
" x = np.reshape(x,(1,n_data))\n",