Free courses in AI, Data Science & Machine Learning Written lessons · Quizzes · Final exams
Future Data Academy
Log inGet started ↗
← Machine Learning Foundations
FREE LESSON PREVIEW

Baselines and prediction-time validity

The decision

A support model predicts escalation when a ticket opens. Resolution codes are tempting predictors but are only available after the outcome. Evaluation must use features available at prediction time and a holdout resembling deployment.

Synthetic case data

model,TP,FP,FN,TN
Majority,0,0,10,90
Candidate,7,8,3,82

Work it through

Before reading the worked analysis, identify the unit of observation, required quantities and missing information. Write your own answer, including units and a limitation.

Worked analysis

The majority baseline has 90% accuracy and zero recall. Candidate accuracy is 89%, precision 7/15≈46.7%, recall 7/10=70%. It finds seven escalations at the cost of eight false alerts. Utility depends on costs and review capacity, not accuracy alone. Fit preprocessing on training rows, choose the operating point on validation rows and reserve final test labels. For time-dependent service data, splitting chronologically may better resemble a future deployment than random mixing. Repeated records from one customer must not leak across evaluation groups unintentionally.

Independent challenge

Design a train/validation/test plan. List five features and when each becomes known. Compare a baseline and candidate using alert volume, precision, recall and costs. Add a monitoring trigger and account for delayed outcome labels.

Acceptance checks

No post-resolution fields may enter a creation-time prediction. Use identical evaluation rows and report class balance and missing predictions.

Further reading

Official reference. This original academy exercise uses synthetic data; the reference provides background and does not endorse the academy.

Explore the full course →