The machine learning workflow in detail: settings, data preparation and data splits
Follow a model from objectives to monitoring. Tell the two kinds of setting apart, list the data preparation steps, and see why a final test set and k-fold checks guard the score.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a student with notes, practice papers and a final exam. A student learns from study notes. Then the student takes practice papers and changes the study plan if the marks are low. The real exam comes last, and the student sits it only once.
If final-exam feedback guides preparation, the resulting mark no longer measures untouched independent performance. In ML, overlapping development and final-evaluation cases similarly compromise that independence; repeating a fixed benchmark without using feedback is not automatically leakage.
A machine learning (ML) model is built in the same way. Daily List is a to-do list app. Leo, the developer, trains a model that flags urgent tasks. Tom, the tester, asks which data is the notes. That is the practice paper and which is the final exam. He also asks who chose the study plan.
The picture has limits. A student understands the subject, and a model only adjusts numbers. A student sits one exam, while a model may be checked many times as the data ages.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Asking which data was used for which step, so the final score is an honest one.
- Train on the notes
- Tune on the papers
- Test once on the exam
- Report the exam mark
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Study notes | The training set |
| Practice papers | The validation set |
| The real exam, sat once | The test set |
| Swapping which chapter is left out | Cross-validation folds |
| The study plan chosen before term | The hyperparameters |
WHERE THIS PICTURE STOPS
- A student understands the subject, but a model only adjusts numbers.
- A student sits one exam, but a model may be checked many times as the data ages.
HOOK
Notes train, papers tune, exam tests once.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Train on the first set, tune on the second, test on the third, and touch the third only once.
| In the trick | What it stands for |
|---|---|
| Train | training set |
| Tune | validation set |
| Test | test set |
TELL A FRIEND
A model learns from notes, tunes on practice papers and is tested once on a final exam. Report the exam mark, because the papers helped choose the plan.
OFTEN MIXED UP WITH Testing the data a model learns from. That lesson tests the data for faults. This lesson shows the whole workflow, the settings and how the data is split.
PRACTISE AND KEEP
Sources for this topic — 6 sources
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 3.1.1: forms of machine learning, including association as an unsupervised task; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
Actual iSQI-hosted publisher PDF and version front matter inspected. Exact section/page coverage and limits are recorded in the v35 Specialist analysis ledger. Simplified source statements are contextualised separately in lessons, not silently represented as universal technical laws. No source figure or extended copyrighted extract copied.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 3.1.2: the machine learning workflow: objectives, framework, algorithm, data, training with model and algorithm hyperparameters, evaluation, tuning, testing, deployment, use, monitoring; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
Actual iSQI-hosted publisher PDF and version front matter inspected. Exact section/page coverage and limits are recorded in the v35 Specialist analysis ledger. Simplified source statements are contextualised separately in lessons, not silently represented as universal technical laws. No source figure or extended copyrighted extract copied.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 3.2.1: data preparation: acquisition, preprocessing, feature engineering and exploratory data analysis; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
Actual iSQI-hosted publisher PDF and version front matter inspected. Exact section/page coverage and limits are recorded in the v35 Specialist analysis ledger. Simplified source statements are contextualised separately in lessons, not silently represented as universal technical laws. No source figure or extended copyrighted extract copied.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 3.2.3: training, validation and test datasets, hold-out test set and k-fold cross-validation; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
Actual iSQI-hosted publisher PDF and version front matter inspected. Exact section/page coverage and limits are recorded in the v35 Specialist analysis ledger. Simplified source statements are contextualised separately in lessons, not silently represented as universal technical laws. No source figure or extended copyrighted extract copied.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 3.4.1: training a neural network: weights and biases start small and random, the loss is fed back, one pass through the training data is an epoch; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
Actual iSQI-hosted publisher PDF and version front matter inspected. Exact section/page coverage and limits are recorded in the v35 Specialist analysis ledger. Simplified source statements are contextualised separately in lessons, not silently represented as universal technical laws. No source figure or extended copyrighted extract copied.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List, Sam, Nina, Tom, Mei, Leo and Lily are invented, and so are the numbers and examples in this lesson. The lesson is a simplified teaching view; the syllabus and the standards it names go into more detail. This lesson is not a certification of the International Software Testing Qualifications Board (ISTQB) and is not accredited exam preparation.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.