Created using Colaboratory

This commit is contained in:
udlbook
2023-10-26 17:19:04 +01:00
parent 7d9296c157
commit 5db114e492

View File

@@ -4,7 +4,7 @@
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyPDNteVt0SjrR97OiS386NZ",
"authorship_tag": "ABX9TyOsg2s5izHB6NECgiGlYIBb",
"include_colab_link": true
},
"kernelspec": {
@@ -66,7 +66,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",