Negative examples should not get more timeline than positive ones

Labels define the event. Observation windows define the information. Keep both aligned to decision time.

Observation WindowLabel LeakageDecision-Time DataTemporal Validation

TL;DR: In event-based modeling, define the label by the event and build features only from what was knowable at the decision time. Do not let negative examples see further into the future than positive ones.

Visual Summary

The Problem

In a support-escalation project, the goal was to predict whether a case would escalate — ideally before escalation started. For escalated cases, the observation cut-point was clear: use only events that happened before the escalation.

For non-escalated cases, a common mistake is to give them the full timeline to the end of observation, which gives them access to future information that won't exist at decision time.

The Approach

Define the label by the event

Escalation is the event of interest. The label should reflect whether that event occurred, but the timing of features must respect decision time.

Define the observation window by knowability

For every example, build features from only what was knowable at the decision point. Match the window length/time horizon across classes where possible, or use an explicit cut-point.

Prevent information asymmetry

If positives are truncated at escalation time, negatives should not see events after their equivalent decision cut-point. Asymmetry is leakage, even if unintentional.

Key Takeaway

Design insight: Labels define the event. Windows define the information. Keep them aligned to decision time — do not let negative examples get more timeline than positive ones.

FAQ

Why shouldn't negative examples get more timeline than positive ones?

Because it creates information asymmetry. If negatives can see further into the future, the model learns access to information that won't be available at prediction time, leading to leakage and inflated performance.

How do you fix this in event-based modeling?

Define the label by the event occurrence, and set the observation window so features are only built from events knowable at decision time. For each case, cut at the same decision point or use a matched window.

Comments

ForecastingTime SeriesMachine LearningPredictive ModelingFeature EngineeringNLPLLM ApplicationsDocument AICustomer SegmentationTelecom AnalyticsAnomaly DetectionRecommendation SystemsGraph AnalyticsGeospatial AnalyticsStatistical AnalysisExperimentation & A/B TestingPythonRSQLDataikuShiny DashboardsStreamlit AppsData VisualizationProduction MLModel EvaluationDecision SystemsData AutomationBusiness Analytics