跳至内容
The Consortium

GCRI · 数据与算力

可复现的流水线

A result can be trusted when others can rerun the same analysis on the same data and get the same answer, and when they can trace each number to its source. Reproducible pipelines combine versioned data and code, recorded environments, workflow systems and provenance. This page sets out why analyses fail to reproduce, how reproducibility is engineered and checked, and what evidence serves the researchers, publishers and agencies that depend on it.

01画布

工作如何开展。

系统 · 围绕本主题示意

数据平台与数据管道

可复现的流程 · 公共数据平台 · 目录 v9

权利审查未结GCRI · 数据与算力

数据集

洪水范围打开已完成是已发布
卫生设施清单打开已完成是已发布
移动轨迹受限部分n/a权利审查
住户调查受限已完成是按申请获取

流水线检查

已固定版本的依赖项,%76 of 100 required确定性输出,%所需 95 项中的 90 项已记录来源追溯的比例(%)100 项中需达 95 项
Data platform and pipelines: the screen's structure, terms and states for Reproducible pipelines.Example names and illustrative values; a design, not a record or a live system.

图数据平台和数据管道:示例名称和示意数值,非记录,亦非运行中的系统。

02问题

可复现的流程:风险如何发展。

数据管线、模型和实验的来源追溯。下方档案说明风险如何发展、衡量什么、数据来自何处、如何建模以及由谁决定。

机制

环境会发生漂移

Software libraries, operating systems and hardware change. An analysis that ran last year may give different results, or none, without a recorded environment.

机制

数据版本会变化

Datasets are corrected and updated. Unless the exact version used is recorded, results cannot be traced or rerun.

机制

Manual steps break chains

Steps done by hand in spreadsheets or interactive sessions are not recorded and cannot be repeated exactly.

机制

Recording which inputs, code and parameters produced each output lets errors be traced and corrections propagate.

03跨领域

可复现的流水线使各领域的结果均可被检验。

04指标

衡量什么,以及衡量得如何。

每个指标都注明其单位、频率、背后的来源类型以及数值将附带的证据标签。此处不显示数值:数值由计划依据其自身权限提供。

指标单位节奏来源类型标签
已发表的分析,附有代码和数据产出百分比每次审计出版审计观测
由第三方成功重跑的分析尝试重跑的百分比每次审计Reproduction studies观测
带有持久标识符的数据集数据集百分比年度Repository metadata观测
Pipelines with recorded environments生产管线百分比每次评估流水线代码仓库已声明
Corrections issued after reproduction checks计数年度更正记录观测
附标识符归档的软件计数年度软件存档记录观测
05来源

证据来自何处。

具名公共数据集与机构记录,各自注明许可类别。依协议获得的来源仅按其条款使用,绝不再次发布。

来源它提供什么许可类别
DataCite and Crossref metadata数据、软件和出版物的持久标识符开放,CC0 元数据
Software Heritage 档案库带有内在标识符的存档源代码开放,适用存档条款
Zenodo 与机构知识库Deposited data and code with identifiers开放,许可按记录而定
W3C PROV standard表示来源追溯的模型开放标准,W3C 条款
已发表文献中的可复现性研究田间实测的繁殖率按出版物许可
06决定

由谁决定,以及证据服务于什么。

Data and Compute 负责准备证据。以下决定由所指明的主管机构依其自身规则作出,绝不由平台作出。

谁来决定问题本页面服务的证据
Research teams and analysts如何构建数据管道,使结果可以重新运行检查清单;流水线模板
Publishers and report editors应要求提供哪些可重复性证据审计方法
资助方和机构Whether to fund archiving and reproducibility supportReproduction rate evidence

该主题产生的产出

  • 分析和报告的可重复性检查清单
  • 带版本化数据、代码和环境的流水线模板
  • 来源追溯记录设计
  • 用于复现已发表结果的审计方法
07核心问题

专家对可复现性的提问。

  • 该结果能否根据记录的输入重新生成,还是依赖未记录的步骤?
  • Which exact version of the data, code and model produced it?
  • 如果在上游发现错误,哪些下游结果会受到影响?
  • 在软件和硬件更新换代多年之后,该管线是否仍能运行?
  • 没有原团队参与的评审人员,能否理解每一步做了什么以及为什么这样做?
  • 每项结果是否都记录了随机种子、模型权重和配置选择?
08机制

Why results become irreproducible.

Irreproducibility is rarely deliberate. It accumulates through small, reasonable shortcuts made under deadline pressure, each harmless alone. The cost appears later, when a result is questioned, a correction is needed or a team member leaves.

环境

Software drift

库和依赖项会发生变化,因此同一代码会产生不同的结果或无法运行。

数据

变动的输入

Datasets are updated in place without versioning, so the original input cannot be recovered.

流程

Manual steps

Undocumented manual cleaning or parameter choices cannot be repeated by others.

09方法与局限

如何使数据管线可复现。

  1. 01

    版本控制

    Tracking code, configuration and, where possible, data versions. Limits: large datasets need specialised tools.

  2. 02

    容器化环境

    将软件依赖打包,使其可以重建。局限:容器本身依赖会变化的底层 系统 。

  3. 03

    工作流系统与来源追溯

    Tools that run pipelines and record each step, studied under data engineering, interoperability and stewardship. Limits: adoption requires effort and discipline.

  4. 04

    数值可复现性

    在并行和加速硬件上,浮点结果在不同次运行之间可能略有差异,这属于 计算 专家关注的问题。局限:严格的按位复现有时并不现实,因此必须说明容差。

10方法

如何研究,以及方法无法说明的内容。

  1. 数据工程、互操作性与数据管护FAIR 数据评估 · 可互操作目录 · 数据质量流程在此应用
  2. 高性能计算、云计算与边缘计算工作负载特征分析 · 代码向新架构移植 · 混合云与高性能计算工作流在此应用
  3. 优化与运筹学作业调度策略 · 碳感知的工作负载迁移 · 容量规划在此应用
11本页参考文献的出处

本页参考文献的去向。

阅读本页时所对照的机构和文件。状态和版本会变化;每个链接都指向发布机构。

12问题

问题与解答。

可重复性与可复现性有何区别?
Reproducibility usually means getting the same results from the same data and code. Replicability means getting consistent results from new data, though usage varies by field.
什么是持久标识符?
对数字对象的长期引用,例如 DOI,即使对象的位置发生变化,仍可继续解析。
什么是数据来源追溯?
对数据的来源以及在得出结果过程中对其所做的每一次转换的记录。
可复现性等同于正确性吗?
No. A wrong analysis can be perfectly reproducible. Reproducibility makes errors findable and correctable.
为什么在不同硬件上结果可能不同?
并行计算可能以不同顺序对数字求和,而浮点运算并不完全满足结合律,因此可能出现微小差异。
平台是否审查其他团队的数据管道?
否。它发布的是团队可自行应用的模式。
数据与算力

带来一种方法、一个数据集或一个问题。

信息和咨询现已开放。每项咨询都会获得一个编号,并告知下一步;申请、付款、算力分配和注册只有在相应团队、条款和审查能力就绪时才会开放。