Advantages and Disadvantages of Batch Gradient Descent
1091 Views • Posted On Aug. 24, 2020
Advantages of Batch Gradient Descent
- Fewer oscillations and noisy steps are taken towards the global minima of the loss function because of updating the parameters by computing the average of all the training samples rather than the value of a single sample.
- It can benefit from the vectorization which increases the speed of processing all training samples together.
- It produces a more stable gradient descent convergence and stable error gradient than stochastic gradient descent.
- It is computationally efficient as all computer resources are not being used to process a single sample rather are being used for all training samples.
Disadvantages of Batch Gradient Descent
- Sometimes a stable error gradient can lead to local minima and unlike stochastic gradient descent, no noisy steps are there to help to get out of the local minima.
- The entire training set can be too large to process in the memory due to which additional memory might be needed.
- Depending on computer resources it can take too long for processing all training samples as a batch.
Share this tutorial with someone who needs it
Most Popular Tutorials in Data Science
Most Popular Tutorials on Asquero