Model Pipeline - Learning curves
Learning curves show how a model improves as it learns from more data or training time. They help us see if the model is learning well or if it needs changes.
Learning curves show how a model improves as it learns from more data or training time. They help us see if the model is learning well or if it needs changes.
Loss
0.7 |****
0.6 |***
0.5 |**
0.4 |*
0.3 |
1 2 3 4 5 Epochs| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 0.65 | 0.6 | Model starts learning with high loss and low accuracy |
| 2 | 0.5 | 0.7 | Loss decreases and accuracy improves |
| 3 | 0.4 | 0.78 | Model continues to learn well |
| 4 | 0.35 | 0.82 | Loss lowers, accuracy rises |
| 5 | 0.3 | 0.85 | Model converges with good performance |
from sklearn.model_selection import learning_curve train_sizes, train_scores, test_scores = learning_curve(model, X, y, train_sizes=[0.1, 0.5, 1.0])
Pass the test and this pattern moves unknown