Who crossed the validation split?
On this page
Test a ticket classifier against a new customer, a new week and a repeated incident. Each split answers a different question.
A support-ticket classifier sees twelve tickets from the same outage. Ten go into training and two into validation. Both held-out tickets mention a customer-specific queue name. A correct prediction could mean the model understood the failure mode. It could also mean it recognised the customer.
Write the deployment question first
If the product promises triage for a newly signed customer, partition by customer. All tickets from one customer travel together. Scikit-learn’s GroupKFold enforces this separation. If the product predicts tomorrow’s tickets from existing customers, use a chronological evaluation that matches the time at which predictions become available. A random partition and a customer partition each describe a different deployment population. Scikit-learn on grouped and time-dependent evaluation.
Inspect tickets on both sides
Consider a single incident ID shared by several customers after a regional service failure. Grouping by customer alone can put that same incident on both sides. If the claim concerns unseen incidents, group by incident. If both customer and incident must be unseen, joins between the two may connect many rows. Treat each connected component as a candidate group and examine its size. One enormous component is evidence that the dataset cannot support the intended comparison cleanly.
Publish the unit beside the score. Report how many independent customers or incidents contribute to the held-out set and show per-group results when size varies sharply. A thousand tickets from one outage offer a precise description of that outage. They offer much weaker evidence about the next one.