﻿# Bank Marketing: call duration depends on the prediction moment

Define whether Bank Marketing predicts before or after a call, preserve full-versus-sampled release identity, and avoid treating row-count folds as equal calendar intervals.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-bank-marketing-duration-prediction-time-version-splits/
Language: en

## Define the decision before choosing the feature list

A team can obtain an attractive Bank Marketing score by using information unavailable at the moment its proposed application makes a decision. The [UCI description](https://archive.ics.uci.edu/dataset/222/bank+marketing) includes the duration of the last contact and a deposit-subscription target.

Distinguish an explanatory analysis after a completed call from ranking clients before the current call. Actual duration of that current call is not yet observed in the latter task. This is an availability constraint, not a universal declaration that duration is invalid for every possible study.

## Identify which contact the value describes

A duration from a genuinely earlier interaction may be available before a later interaction, provided its chronology and identity are established. The ambiguous phrase last call is insufficient to resolve that relationship without a concrete record contract.

Write a feature availability table describing the decision time, observation time, and contact association. The [temporal availability guide](/journal/data-guide-temporal-split-availability/) explains why information must be interpreted relative to the particular prediction being evaluated.

## Full and sampled files support different partition claims

UCI distinguishes full date-ordered files from smaller randomly selected files, and older schemas from additional-variable schemas. Record the exact filename and header instead of using Bank Marketing as a complete release identifier.

A tail split of a randomly sampled file does not automatically recreate a holdout on the original chronology. Preserve source ordering where the experiment needs it, and avoid merging differently defined releases merely because several column names overlap.

## Temporal folds are not automatically equal calendar periods

The [TimeSeriesSplit documentation](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.TimeSeriesSplit.html) explains ordered training and evaluation and notes equal spacing for comparable time durations across folds. Date-ordered campaign rows need not represent equally spaced observations.

If equal calendar coverage matters, use actual available temporal information and document the boundary rule. A fixed number of contacts can span different durations. Do not infer exact timestamps or client groups that the selected artifact does not expose.

## Fit preparation within the permitted training history

The [ColumnTransformer interface](https://scikit-learn.org/stable/modules/generated/sklearn.compose.ColumnTransformer.html) supports explicit processing by field. Freeze training-derived numeric transformations and category vocabularies, keeping the target and unavailable current-contact fields outside predictor assembly.

The [benchmark methodology guide](/journal/inference-benchmark-method/) helps attach results to a defined protocol. Report task timing, release, fields, and partition with each score. A valid historical classification experiment does not by itself demonstrate improved campaign outcomes, causal benefit from making a call, or transfer to another bank's present-day clients.
