From 182293e8d6da0a9fc3eef2cbea8ebae353a8b319 Mon Sep 17 00:00:00 2001 From: udlbook <110402648+udlbook@users.noreply.github.com> Date: Sun, 24 Dec 2023 09:19:51 -0500 Subject: [PATCH] Update 6_3_Stochastic_Gradient_Descent.ipynb --- Notebooks/Chap06/6_3_Stochastic_Gradient_Descent.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Notebooks/Chap06/6_3_Stochastic_Gradient_Descent.ipynb b/Notebooks/Chap06/6_3_Stochastic_Gradient_Descent.ipynb index 282039e..e0ac0df 100644 --- a/Notebooks/Chap06/6_3_Stochastic_Gradient_Descent.ipynb +++ b/Notebooks/Chap06/6_3_Stochastic_Gradient_Descent.ipynb @@ -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" @@ -583,4 +583,4 @@ "outputs": [] } ] -} \ No newline at end of file +}