@@ -31,7 +31,7 @@
|
||||
"source": [
|
||||
"# **Notebook 6.2 Gradient descent**\n",
|
||||
"\n",
|
||||
"This notebook recreates the gradient descent algorithm as shon in figure 6.1.\n",
|
||||
"This notebook recreates the gradient descent algorithm as shown in figure 6.1.\n",
|
||||
"\n",
|
||||
"Work through the cells below, running each cell in turn. In various places you will see the words \"TO DO\". Follow the instructions at these places and make predictions about what is going to happen or write code to complete the functions.\n",
|
||||
"\n",
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"# Initialize the parmaeters and draw the model\n",
|
||||
"# Initialize the parameters and draw the model\n",
|
||||
"phi = np.zeros((2,1))\n",
|
||||
"phi[0] = -5 # Horizontal offset\n",
|
||||
"phi[1] = 25 # Frequency\n",
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"# Initialize the parmaeters and draw the model\n",
|
||||
"# Initialize the parameters and draw the model\n",
|
||||
"phi = np.zeros((2,1))\n",
|
||||
"phi[0] = -5 # Horizontal offset\n",
|
||||
"phi[1] = 25 # Frequency\n",
|
||||
|
||||
@@ -248,7 +248,7 @@
|
||||
" # Replace this line:\n",
|
||||
" v = v\n",
|
||||
"\n",
|
||||
" # TODO -- Modify the statistics according to euation 6.16\n",
|
||||
" # TODO -- Modify the statistics according to equation 6.16\n",
|
||||
" # You will need the function np.power\n",
|
||||
" # Replace these lines\n",
|
||||
" m_tilde = m\n",
|
||||
|
||||
Reference in New Issue
Block a user