Model Pipeline - Data distributions and outliers
This pipeline shows how data distributions and outliers affect the data before training a simple model. It helps us see how cleaning outliers can improve model learning.
This pipeline shows how data distributions and outliers affect the data before training a simple model. It helps us see how cleaning outliers can improve model learning.
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.60 | Model starts with moderate loss and accuracy |
| 2 | 0.50 | 0.75 | Loss decreases and accuracy improves |
| 3 | 0.40 | 0.82 | Model continues to learn, better accuracy |
| 4 | 0.35 | 0.85 | Loss decreases steadily, accuracy rises |
| 5 | 0.30 | 0.88 | Training converges with good accuracy |
[5, 7, 8, 9, 10, 100], which value is most likely an outlier based on the IQR method?import numpy as np q1 = np.percentile(data, 25) q3 = np.percentile(data, 75) iqr = q1 - q3 lower_bound = q1 - 1.5 * iqr upper_bound = q3 + 1.5 * iqr outliers = [x for x in data if x < lower_bound or x > upper_bound]
Pass the test and this pattern moves unknown