Created using Colaboratory
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"colab": {
|
"colab": {
|
||||||
"provenance": [],
|
"provenance": [],
|
||||||
"authorship_tag": "ABX9TyPDNteVt0SjrR97OiS386NZ",
|
"authorship_tag": "ABX9TyOsg2s5izHB6NECgiGlYIBb",
|
||||||
"include_colab_link": true
|
"include_colab_link": true
|
||||||
},
|
},
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
" return activation\n",
|
" return activation\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Define a shallow neural network\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",
|
" # Make sure that input data is (1 x n_data) array\n",
|
||||||
" n_data = x.size\n",
|
" n_data = x.size\n",
|
||||||
" x = np.reshape(x,(1,n_data))\n",
|
" x = np.reshape(x,(1,n_data))\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user