Skip to content

Commit

Permalink
Update 6_3_Stochastic_Gradient_Descent.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
udlbook authored Dec 24, 2023
1 parent d7468ee commit 182293e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Notebooks/Chap06/6_3_Stochastic_Gradient_Descent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@
" # at each step\n",
" # You can use the function np.random.permutation to generate a random permutation of the n_data = data.shape[1] indices\n",
" # and then just choose the first n=batch_size of these indices. Then compute the gradient update\n",
" # from just the data with these indices. More properly, you should sample with replacement, but this will do for now.\n",
" # from just the data with these indices. More properly, you should sample without replacement, but this will do for now.\n",
"\n",
"\n",
" return phi"
Expand Down Expand Up @@ -583,4 +583,4 @@
"outputs": []
}
]
}
}

0 comments on commit 182293e

Please sign in to comment.