Update 6_3_Stochastic_Gradient_Descent.ipynb

This commit is contained in:
udlbook
2023-12-24 09:19:51 -05:00
committed by GitHub
parent d7468ee1c1
commit 182293e8d6

View File

@@ -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": []
}
]
}
}