Update 2_1_Supervised_Learning.ipynb
This commit is contained in:
@@ -213,7 +213,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"# Make a 2D array for the losses\n",
|
"# Make a 2D array for the losses\n",
|
||||||
"all_losses = np.zeros_like(phi1_mesh)\n",
|
"all_losses = np.zeros_like(phi1_mesh)\n",
|
||||||
"# Run throught each 2D combination of phi0, phi1 and compute loss\n",
|
"# Run through each 2D combination of phi0, phi1 and compute loss\n",
|
||||||
"for indices,temp in np.ndenumerate(phi1_mesh):\n",
|
"for indices,temp in np.ndenumerate(phi1_mesh):\n",
|
||||||
" all_losses[indices] = compute_loss(x,y, phi0_mesh[indices], phi1_mesh[indices])\n"
|
" all_losses[indices] = compute_loss(x,y, phi0_mesh[indices], phi1_mesh[indices])\n"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user