Main Point
Data roles follow how information is used. Independence requires controlling the actual paths by which examples influence learning and development, not merely naming folders.
Key Points
- Pretraining and later training change learned behavior; evaluation measures a specified claim.
- State the prediction time, target horizon and deployment population before splitting.
- Keep development feedback separate from the final frozen-candidate test.
- Audit groups, source families, preprocessing and availability times for leakage.
1. Bind the course's synthetic split
The following hypothetical project example defines the customer groups, dates and intended test claim explicitly.
The target is occurrence of a return within 30 days, predicted at checkout for later orders from unseen customers. Only checkout-available inputs qualify. January–March groups C001–C016 give 68 training examples: 12 × 4 + 4 × 5. April groups C017–C020 give 17 final examples: 3 × 4 + 1 × 5. Groups do not overlap. Time and customer novelty vary jointly, so the test does not identify their separate effects. Score only after the 30-day outcomes mature.
These invented counts define a partition, not sufficient evidence of quality, size, performance or leakage absence. The guide/version and feature-availability rules still need inspection.
2. Keep roles and information paths distinct
A question-answer pair can train a model or evaluate it. Transformers 4.57.0 illustrates specialized fine-tuning of a pretrained classifier; its software example supplies no benefit estimate for the course case. [HF-TRAIN]
Development may use separate validation or training-only resampling under an explicit design. Once the final 17 outcomes influence a label, feature, prompt, threshold or candidate choice, they have influenced development. The same set cannot honestly retain an untouched-final claim.
Scikit-learn 1.7.2 explains leakage and appropriate split/preprocessing practices. Related groups, future information, duplicates and test-derived preprocessing can undermine an apparent holdout. [SK-LEAK;SK-SPLIT]
3. Preserve the comparison
Version dataset identities, mixture rules, transformations, label guide and evaluation together. Explain which changes belong to a new test rather than quietly replacing old results. Keep runtime retrieval and application state distinct from training and reserved evaluation. Use the worksheet to inspect role, timing and development contamination without inventing a score.
4. A dated example
Penedo and colleagues' FineWeb study, first released in June 2024, documented pretraining-data curation and experiments varying filtering and deduplication choices. They released curation code and the models trained in those experiments. The evidence comes from comparing defined choices on tested models and benchmarks. It does not make one filter a universal guarantee. For our smaller task, preserve the data and transformation versions so a comparison can reveal what changed, and keep evaluation independent of the decisions being compared.
5. Bringing the lesson together
The 68 training and 17 final examples now have a defined timing and deployment claim. You can inspect what influenced learning or development and decide whether a final test still supports an independent comparison.
Learning Checks
Attempt each answer before expanding the reasoning.
M13-L10-Q01
Why preserve a final test set while using a development set? Think about what happens when repeated decisions are made after looking at the same outcomes.
Show reasoning
Repeated tuning can adapt choices to that set. A separate final set supports a more credible assessment of the frozen candidate under its stated claim. Independence still needs checks for groups, timing, duplicates and information access; the name final does not provide them.
Sources
- HF-TRAIN Hugging Face. *Fine-tuning*. https://huggingface.co/docs/transformers/v4.57.0/en/training. Transformers 4.57.0. Retrieved 29 October 2026.
- SK-LEAK scikit-learn developers. *Common pitfalls and recommended practices*. https://scikit-learn.org/1.7/common_pitfalls.html. scikit-learn 1.7.2. Retrieved 29 October 2026.
- SK-SPLIT scikit-learn developers. *Cross-validation*. https://scikit-learn.org/1.7/modules/cross_validation.html. scikit-learn 1.7.2. Retrieved 29 October 2026.
- M13-L10-DATED-01 Guilherme Penedo and colleagues. *The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale*. https://arxiv.org/abs/2406.17557. Publication/version: 2024-06-25 first submission; 2024-10-31 v2. Retrieved 29 October 2026. Curation ablation experiments on tested models and benchmarks; no universal filter or benefit guarantee.