Glossary
One line per term. Follow the link for the full explanation.
Framing
| Term | Definition | More |
|---|---|---|
| Snapshot date | The moment you freeze time: features only from before it, the label only from after it. | The snapshot date |
| Label window | The period after the snapshot date in which the outcome is observed (30 days here). | The label |
| Base rate | The share of positive rows: 3% of machines fail per window. | Start with the target |
| Baseline | The score of a simple strategy the model must beat, such as the CMMS rule. | Baseline first |
Data
| Term | Definition | More |
|---|---|---|
| Leakage | Training data containing information the model won't have at prediction time. Scores too good, then collapses. | The leakage bug |
| MCAR / MAR / MNAR | Missing completely at random; explained by other columns; depends on the missing value itself. | Missing values |
| Missing indicator | A 0/1 column recording that a value was imputed, so the gap's signal survives. | Missing values |
| Target encoding | Replacing a category with its mean target. Must be out-of-fold or it leaks. | Encoding categoricals |
| Pipeline | One fitted object holding every preprocessing step plus the model. | The pipeline pattern |
| Permutation importance | The score drop when one column is shuffled. No drop means the model ignores it. | Selecting features |
| SHAP | Per-prediction attribution of a score to each feature. Describes the model, not causes. | Explaining the model |
Validation
| Term | Definition | More |
|---|---|---|
| Cross-validation | Rotating which fold is held out, so every row validates once. | Cross-validation |
| Time-based split | Train on earlier periods, validate and test on later ones. | Choosing the validation split |
| Bias–variance | Underfitting (too simple) vs overfitting (too flexible). | Bias–variance trade-off |
| Regularisation | A penalty on complexity: L1 zeroes weights, L2 shrinks them. | Regularisation |
| Early stopping | Stop adding trees or epochs when the validation score stops improving. | Gradient boosting |
Metrics
| Term | Definition | More |
|---|---|---|
| Precision / recall | Share of flags that were right / share of positives that were flagged. | Evaluation metrics |
| PR-AUC | Precision averaged over all recall levels. The metric for rare positives. | Evaluation metrics |
| ROC-AUC | How often a random positive outranks a random negative. Flattering on rare positives. | Evaluation metrics |
| Threshold | The score above which a row is flagged. Set by the cost of misses vs false alarms. | Evaluation metrics |
| RMSE / MAE | Typical miss size; RMSE weights big misses more. | Regression metrics |
Models
| Term | Definition | More |
|---|---|---|
| Bagging | Many models on random subsets, averaged. Cuts variance. | Bagging vs boosting |
| Boosting | Models in sequence, each fitting the last one's errors. Cuts bias. | Bagging vs boosting |
| Calibration | Whether a score of 0.3 really means a 30% chance. | Logistic regression |
| Class weight | Up-weighting the rare class in the loss (class_weight, scale_pos_weight). | Handling class imbalance |
Production
| Term | Definition | More |
|---|---|---|
| Training/serving skew | Features computed differently in serving than in training. Silent decay. | Training/serving skew |
| Covariate drift | Input distributions shift after launch. | Monitoring and drift |
| Concept drift | The same inputs now mean a different outcome. | Monitoring and drift |
| Control group | A random slice that doesn't get the intervention, for clean labels and causal impact. | Proving impact |