A colleague cannot reproduce your model results. Which practice would have prevented this?
- Exam domain
- Data Science Pipelines and Workflow Automation13% of the exam
- Difficulty
- Easy
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Data Science Pipelines and Workflow Automation (13% of the exam)
Objective in the exam guide: Building reproducible pipelines with RAPIDS and Dask
Reproducible pipelines with RAPIDS and Dask are named.
Why D is the answer
Fixed seeds, pinned environments and versioned data
Reproducibility needs the same code, data version, environment and random seeds.
Remember: Pin code, data, environment and seeds.
How it works
Reproducible pipelines fix code, data, environments and randomness.
In detail
- Fix seeds.
- Pin environments and version data.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Running steps in a different orderWrong
Order changes outputs.
B. Sending them a screenshot of the final accuracy score from your notebookWrongMost tempting
Screenshots do not reproduce results.
Why it tempts: A result screenshot feels like proof.
C. Using a different library version on each machineWrong
Different versions change results.
D. Fixed seeds, pinned environments and versioned dataRight
Pin code, data, environment and seeds.
Use case
An illustrative scenario, not a real incident.
Illustrative: a pinned environment file and data snapshot let a reviewer reproduce results to the decimal.
See it in different ways
mindmap
root(("Reproducible pipeline"))
n1["Code"]
n2["Git commit"]
n3["Data"]
n4["Versioned snapshot"]
n5["Environment"]
n6["Pinned packages"]
n7["Randomness"]
n8["Fixed seeds"]How to read this chart
- The centre is "Reproducible pipeline".
- "Code" covers "Git commit".
- "Data" covers "Versioned snapshot".
- "Environment" covers "Pinned packages".
- "Randomness" covers "Fixed seeds".
flowchart LR S0["Commit code"] --> S1["Snapshot data"] --> S2["Export environment"] --> S3["Set seeds"] --> S4["Log run"]
How to read this chart
- Read it in order: Commit code, then Snapshot data, then Export environment, then Set seeds, then Log run.