Lesson 6 of 7 · 2 min
Types of Gradient Descent
| Type | Data used per update | Speed | Noise |
|---|---|---|---|
| Batch GD | All training data | Slow per step | Smooth |
| Stochastic GD (SGD) | 1 sample | Fast per step | Noisy |
| Mini-batch GD | k samples (e.g., 32) | Best of both | Moderate |
sklearn uses mini-batch by default in SGDClassifier and SGDRegressor.
