GCRI · 系统科学与建模
可复现的建模
A model result should be reproducible: others should be able to rerun the model with the same code, data and settings and get the same result, and inspect every step. Many published models cannot be rerun because code, data or environments are missing. This page sets out how reproducible modelling is practised, how it is checked, and what evidence serves the modellers, publishers and institutions who depend on it.
可重复建模:风险如何发展。
带版本的模型、数据谱系和可重复运行的结果。下方档案说明风险如何演变、衡量什么、数据来自何处、如何建模以及由谁决定。
Code and data must be available
Without the exact code and inputs, a result cannot be checked. Archiving them with identifiers makes reruns possible.
Environments decay
软件依赖会随时间变化。使用容器或锁定文件记录运行环境,可使模型在更长时间内保持可运行。
工作流记录各步骤
Workflow tools record every step from raw data to final figures, removing undocumented manual steps from the chain.
Versioning supports correction
When errors are found, versioned models and data let corrections be traced and affected results updated.
Reproducibility lets every domain check model results.
Practice is designed for the Methods and Technical series. FAIR principles for research software (2022) guide releases; code and data would carry identifiers under the proposed Nexus Standards.
- 可复现性审计。
- Released code with tests.
衡量什么,以及衡量得如何。
每个指标都注明其单位、频率、背后的来源类型以及数值将附带的证据标签。此处不显示数值:数值由计划依据其自身权限提供。
| 指标 | 单位 | 节奏 | 来源类型 | 标签 |
|---|---|---|---|---|
| Models with archived code | 已发布模型的百分比 | 每次审查 | 代码存档检查 | 观测 |
| 成功的独立重复运行 | 尝试重跑的百分比 | 每次审计 | Reproduction studies | 观测 |
| 有环境记录的模型 | 百分比 | 每次审查 | 存储库检查 | 观测 |
| 带持久标识符的软件 | 计数 | 年度 | Archive records | 观测 |
| 已发布的更正 | count with reason | 持续 | 更正记录 | 观测 |
| 符合 FAIR4RS 标准的模型 | 百分比 | 每次评估 | FAIR 评估 | 估算 |
证据来自何处。
具名公共数据集与机构记录,各自注明许可类别。依协议获得的来源仅按其条款使用,绝不再次发布。
| 来源 | 它提供什么 | 许可类别 |
|---|---|---|
| Software Heritage 档案库 | 带标识符的归档源代码 | 开放,适用存档条款 |
| Zenodo 与机构知识库 | 带有 DOI 的已存放模型和数据 | 开放,许可按记录而定 |
| 研究软件的 FAIR 原则(FAIR4RS) | 可复用研究软件原则 | 开放,CC BY 4.0 |
| CoMSES Net 与模型档案库 | Archived models with documentation | 开放,各模型分别适用许可 |
| 计算科学中的可复现性研究 | Measured reproduction rates | 按出版物许可 |
| 谁来决定 | 问题 | 本页面服务的证据 |
|---|---|---|
| 建模团队 | 如何封装模型以便他人重新运行 | Checklists; archiving guides |
| Publishers and report editors | 应要求提供哪些可重复性证据 | 重新运行审计 |
| 资助方 | Whether to fund archiving and research software engineering | Reproduction rate evidence |
该主题产生的产出
- 模型可重复性检查清单
- 模型归档与版本管理指南
- 对已发布模型结果的重跑审计
- Open teaching material on reproducible modelling
专家对可复现性的提问。
- 得出某一结果所用的确切模型版本是否已被记录并可检索?
- Can the input data be traced back to their sources, with every processing step?
- 软件环境、随机种子和硬件差异是否有记录?
- Can an independent team re-run the analysis without the original authors?
- How are errors found after publication corrected and communicated?
Why modelling results fail to reproduce.
Models change constantly as code is fixed and improved. Without version control, it may be impossible to know which version produced a published result. Input data are revised, cleaned and transformed through steps that are often undocumented. Software libraries change behaviour between versions, and stochastic models depend on random seeds.
耦合模型会使这些问题成倍增加,因为每个组成部分都有各自的版本、数据和设置。结果可能取决于某种从未被记录的特定组合。
激励机制也起作用:记录和分享模型需要花费时间,而这很少得到回报。但无法重现的结果无法核实,广泛使用的模型中的错误可能扩散到许多决策中。
Practices and their limits.
- 01
版本控制
Recording every change to code and configuration. It requires discipline and shared conventions.
- 02
数据谱系
借鉴 统计 和数据管理实践,记录每项输入的来源和处理步骤。部分数据无法共享。
- 03
计算环境
记录软件依赖项,以便模型能够重新运行。长期保存仍然困难。
- 04
独立重新运行
在发布前由另一个团队复现关键结果。成本高昂,但非常有效。
Reproducibility does not make a model right. It makes the model checkable. Replication with independent models and data is a further step, covered in model intercomparison.
Where this page’s references lead.
阅读本页时所对照的机构和文件。状态和版本会变化;每个链接都指向发布机构。
问题与解答。
什么是计算可复现性?
为什么要归档模型代码?
FAIR4RS 原则是什么?
Is open-source code required?
什么是数据谱系?
可复现性是否意味着模型正确?
How are errors corrected?
法律文件。
本网站上的地图、数据和图表仅作为背景和一般信息展示。它们不是建议、预测或预警;信息的局限见免责声明和数据说明。