Skip to main content

build-a-reproducible-analysis-notebook

Build a reproducible analysis notebook with pinned inputs, explicit transformations, deterministic execution, validation, and interpretable outputs. Use when research results must be rerunnable and reviewable.

来源信息

仓库
protosphinx/sphinxstack
最近来源活动
2026年7月29日 13:55
检测到的 SKILL.md 语言
英语
星标
2
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
build-a-reproducible-analysis-notebook
category
school
description
Build a reproducible analysis notebook with pinned inputs, explicit transformations, deterministic execution, validation, and interpretable outputs. Use when research results must be rerunnable and reviewable.
# build-a-reproducible-analysis-notebook The notebook is evidence only if a clean run reproduces it. ## When to use - Use for coursework, research, audits, experiments, or published analyses. - Never embed secrets, unauthorized personal data, or unexplained manual edits. ## Preconditions - Define source authority, data rights, environment, expected outputs, review audience, and retention. ## Procedure 1. Record source versions, checksums, retrieval dates, licenses, schemas, and exclusions. 2. Separate immutable raw inputs, cleaning, analysis, charts, and exported artifacts. 3. Pin runtime and package versions and document platform dependencies. 4. Make parameters, random seeds, time zones, locales, units, and missing-data rules explicit. 5. Add assertions for schema, row identity, ranges, joins, denominators, and invariants. 6. Explain why each transformation and method supports the question. 7. Run top-to-bottom in a clean environment and compare expected hashes or tolerances. 8. Export a readable report plus machine-readable environment and validation records. ## Failure plan - If source data cannot be shared, publish a lawful synthetic or access-controlled reproduction path. - If results vary, identify nondeterminism and report tolerances rather than hiding it. ## Worked example A notebook rebuilds an enrollment chart from a hashed source snapshot, checks student uniqueness and denominators, pins packages, and reproduces its report in a clean environment. ## Done - A notebook repository contains source manifest, code, environment lock, assertions, outputs, and a rerun document - Clean-run, checksum, schema, invariant, seed, privacy, and output-comparison tests verify reproducibility
在 GitHub 查看