liveBook · Manning

Documentation

As explained in Delivering Machine Learning Projects: From design to deployment

Documentation is recorded information describing a project's work, decisions, requirements, and system state.

Documentation records a project’s work, decisions, requirements, and system state so the team can share and reuse information. Working software demonstrates progress, but a maintainable system also needs information about how to use, support, and fix it. section 1.4 section 4.3.5

Build the documentation portfolio throughout delivery rather than leaving it until handover. Use sprint checklists to flag required records and verify that tasks are complete. When iteration changes data, pipelines, or tests, update the records alongside the work so that the team can see what happened. section 1.4 section 8.4

Keep modeling records detailed enough to inspect and reproduce the work:

  • Record features, design information, and the models developed; capture the details needed to reproduce them in a model repository. section 8.4
  • Make experimental results available for inspection and record issues discovered during development. section 8.4
  • Organize investigations and preserve experimental details to avoid repeating work or losing information needed to rebuild a model. section 7.4.1
Table 8.3 Sprint 2 checklist (view table figure)

Ticket #

Item

Notes

S2.1

Feature engineering is implemented.

Features and design information are recorded.

S2.2

Models to be used explicitly are designed.

Model design documented.

S2.3

Modelling process undertaken and models developed.

Model repository used; models identified and captured along with all details required for reproduction.

S2.4

Model performance in dev was properly assessed by the team, and the experimental results are recorded.

Results of experiments are available for inspection.

S2.5

Model issues discovered in dev are recorded.

Defects will often be noticed in development; check that these were documented and that the documentation is available.

S2.6

Test environment was commissioned.

The test environment is set up, and the required data sources for testing are available.

S2.7

Appropriate tests are designed.

The tests that determine if the models are fit for purpose agreed on and documented.

S2.8

Test data has been gathered.

Tests run in the test environment, and results collected and available for evaluation.

S2.9

Model selection is documented.

Model selection methods are documented, and the decisions that were made when using them and the testing data are recorded. Qualitative factors in the decisions should be recorded and agreed on.

Use the post-modeling checklist to check which design, model, experimental, and defect records are available. section 8.4

Prepare additional documents for a maintainable production system:

  • A production team organization chart identifies who supports the system, how to contact them, and the credentials, knowledge, and training they need. Plan coverage for absences and succession. section 9.5.2
  • A run book guides first- and second-line support through error states produced by logging and monitoring, including simple fixes or escalation routes. section 9.5.2
  • A technical overview gives new engineers a high-level map of the core components and links to the development documentation archive. section 9.5.2
  • A troubleshooting guide is also part of the production documentation set. section 9.5.2

Run book entry

For a data error, a run book entry might instruct support to escalate to the technical team. Other entries can specify a simple corrective action, such as restarting an application server. section 9.5.2

How Delivering Machine Learning Projects: From design to deployment covers it

How deep it goes
Specifies sprint documentation checks and production document purposes, with illustrative run book actions.
Examples
Uses a post-modeling checklist, production organization chart, run book, technical overview, and troubleshooting guide as artifacts.
What you can do after
Practice maintaining project records and preparing support documents for a production system.
How it connects
Connects documentation with agile sprints, model reproducibility, logging, monitoring, and production support.

Also explained in

Compare how 13 books explain documentation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Delivering Machine Learning Projects: From design to deployment. The section links point to the parts of the book it draws on.