Model Pipeline - Retraining strategies
This pipeline shows how a machine learning model is retrained over time to keep its predictions accurate as new data arrives or conditions change.
This pipeline shows how a machine learning model is retrained over time to keep its predictions accurate as new data arrives or conditions change.
Loss
0.5 |****
0.4 |******
0.3 |********
0.2 |
+------------
1 2 3 4 5 Epochs| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 0.45 | 0.78 | Initial retraining starts with moderate loss and accuracy |
| 2 | 0.38 | 0.82 | Loss decreases and accuracy improves as model learns new data |
| 3 | 0.33 | 0.85 | Model converges with better performance after retraining |
| 4 | 0.31 | 0.86 | Slight improvement, showing stable learning |
| 5 | 0.30 | 0.87 | Final epoch with best accuracy and lowest loss |
old_accuracy = 0.85 model.fit(new_data, epochs=3) new_accuracy = 0.88 improvement = new_accuracy - old_accuracy print(improvement)What will be the printed output?
model.fit(new_data, epochs=5) model.fit(new_data, epochs=3, initial_epoch=5)But the second fit call throws an error. What is the likely cause?
Pass the test and this pattern moves unknown