Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Six months after training, someone will ask which data version the model saw, why a variable was dropped, or how the decision threshold was chosen. An auditor, a Notified Body (the independent organisation that assesses medical devices for CE marking) or a clinician investigating an incident needs the same answers. If you write them down while you work, you can give them; if you reconstruct them later, you will miss things.

Illustration of documentation practices showing a person writing thorough records that enable others to understand and reproduce a process.

The Turing Way Community. This illustration is created by Scriberia with The Turing Way community, used under a CC-BY 4.0 licence. DOI: 10.5281/zenodo.3332807.

What to document

Model card

A model card is a short, standard document that describes a model and travels with it Mitchell et al. (2019). It covers:

Datasheet for the data

A datasheet does for a dataset what a model card does for a model Gebru et al. (2021). It answers why the dataset was created, what it contains, how data and labels were collected, what preprocessing was applied, which uses are appropriate and which are not, how it is distributed and under what licence, and who maintains it.

Technical documentation for regulators

If your system is a medical device, the MDR requires technical documentation (Annex II) before CE marking European Parliament and Council (2017). If it is also a high-risk AI system under the EU AI Act, Art. 11 and Annex IV add AI-specific content European Parliament and Council (2024). Both expect, among other things:

A model card and datasheet do not replace this, but most of their content feeds into it.

Version control

Keep code, configuration, preprocessing scripts and documentation under version control, using a standard system such as Git. Write commit messages that explain why a change was made as well as what changed. Tag each release that corresponds to a model version, and record for every model version the exact data version and code version used to train it.

Reproducibility

A model is reproducible when someone else can retrain it from your records and get the same or very close results. Write the full preprocessing pipeline as code, with no manual steps. Pin every dependency in a lockfile and record the hardware and software environment (processor or GPU type, driver and library versions). Fix and record random seeds. On GPUs, seeds alone do not guarantee identical results, because some operations are non-deterministic; enable your framework’s deterministic settings if you need exact repeats, or accept results that are close to identical and say so.

References
  1. Lekadir, K., Frangi, A. F., Porras, A. R., & others. (2025). FUTURE-AI: international consensus guideline for trustworthy and deployable artificial intelligence in healthcare. BMJ, 388, e081554. 10.1136/bmj-2024-081554
  2. Mitchell, M., Wu, S., Zaldivar, A., & others. (2019). Model cards for model reporting. Proceedings of the Conference on Fairness, Accountability, and Transparency, 220–229. 10.1145/3287560.3287596
  3. Gebru, T., Morgenstern, J., Vecchione, B., & others. (2021). Datasheets for datasets. Communications of the ACM, 64(12), 86–92. 10.1145/3458723
  4. European Parliament and Council. (2017). Regulation (EU) 2017/745 on medical devices (MDR) [Techreport]. Official Journal of the European Union.
  5. European Parliament and Council. (2024). Regulation (EU) 2024/1689 of the European Parliament and of the Council on artificial intelligence. Official Journal of the European Union.