Batch Gradient Descent

Can you please explain this to me BatchGradientDescentWithrandomShuffling

Basically we first need to shuffle the data, that is done using np.arange through which we created list of indices and than we use np.random.shuffle to shuffle these indices. So that when we pick first elements we get indices of these elements from these random shuffled list, now we can pick first batch_size elements and than next and so on.

Hope this cleared your doubt. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.