References · Module 08¶
-
DVC documentation:
dvc.yamlfiles. dvc.org/doc/user-guide/project-structure/dvcyaml-files The authoritative definition ofcmd,deps,params,outs, andmetrics, including the rule that a stage's outputs are its claim about what it produces. -
DVC documentation:
dvc repro. dvc.org/doc/command-reference/repro Read the sections on--force,--single-item, and--dry, and the note that cached outputs are checked out rather than recomputed. The distinction is the heart of this module. -
DVC documentation:
dvc statusanddvc dag. dvc.org/doc/command-reference/status · dvc.org/doc/command-reference/dagstatusanswers "what is stale, and why";dag --mermaidproduces the graph you paste into your evidence file. -
DVC documentation: pipeline cache and
dvc gc. dvc.org/doc/user-guide/project-structure/internal-files Where the cache lives and what a cache entry is. Read before deleting anything to free disk space. -
pre-commit documentation. pre-commit.com Installation, the hook lifecycle, and
--no-verify. Note that hooks are a convenience, not a security control; the same checks belong in CI. -
pre-commit-hooks repository. github.com/pre-commit/pre-commit-hooks The exact behaviour of
trailing-whitespace,end-of-file-fixer,check-added-large-files, andcheck-yaml, including their exit codes. -
Python documentation:
subprocess. docs.python.org/3/library/subprocess.htmlcheck=True,capture_output, and the security note aboutshell=True. The wrapper in this module usesPopento stream output;runis sufficient when you only need the result. -
Python documentation:
sys.exitand process exit codes. docs.python.org/3/library/sys.html#sys.exit Whyraise SystemExit(main())is the cleanest way to turn a function's return value into an exit code. -
Git documentation: Git hooks. git-scm.com/book/en/v2/Customizing-Git-Git-Hooks What
pre-commitinstalls and when it runs. Useful for understanding why hooks are local and can be bypassed. -
GNU Make manual: exit status. gnu.org/software/make/manual/html_node/Errors.html
makeis the older, ubiquitous version of the same idea: targets, prerequisites, and stop-on-error. Reading it makes clear that DVC's semantics are not novel, only better suited to data. -
MLflow documentation. mlflow.org/docs/latest/index.html Referenced forward rather than used here: Module 09 gives the artefact this pipeline produces a version, an alias, and a promotion gate.
Note on the numbers¶
The timings in this module (11.2 s forced, 1.5 s cached, stage durations 0.61–2.10 s) were measured on one laptop CPU with a warm operating-system cache, using Measure-Command and date +%s%N. The metric values (MAE 2.7686, 2.7874 at 120 trees) come from the reference implementation and the course dataset. Treat the ordering and the DVC decisions as transferable, and the seconds as local.