跳至内容
The Consortium

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.

01登记

记录在案的可复现建模。

02问题

可重复建模:风险如何发展。

带版本的模型、数据谱系和可重复运行的结果。下方档案说明风险如何演变、衡量什么、数据来自何处、如何建模以及由谁决定。

机制

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.

03跨领域

Reproducibility lets every domain check model results.

04指标

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

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

指标单位节奏来源类型标签
Models with archived code已发布模型的百分比每次审查代码存档检查观测
成功的独立重复运行尝试重跑的百分比每次审计Reproduction studies观测
有环境记录的模型百分比每次审查存储库检查观测
带持久标识符的软件计数年度Archive records观测
已发布的更正count with reason持续更正记录观测
符合 FAIR4RS 标准的模型百分比每次评估FAIR 评估估算
05来源

证据来自何处。

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

来源它提供什么许可类别
Software Heritage 档案库带标识符的归档源代码开放,适用存档条款
Zenodo 与机构知识库带有 DOI 的已存放模型和数据开放,许可按记录而定
研究软件的 FAIR 原则(FAIR4RS)可复用研究软件原则开放,CC BY 4.0
CoMSES Net 与模型档案库Archived models with documentation开放,各模型分别适用许可
计算科学中的可复现性研究Measured reproduction rates按出版物许可
06决定

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

系统 科学与建模负责准备证据。以下决定由所列机构依其自身规则作出,绝不由平台作出。

谁来决定问题本页面服务的证据
建模团队如何封装模型以便他人重新运行Checklists; archiving guides
Publishers and report editors应要求提供哪些可重复性证据重新运行审计
资助方Whether to fund archiving and research software engineeringReproduction rate evidence

该主题产生的产出

  • 模型可重复性检查清单
  • 模型归档与版本管理指南
  • 对已发布模型结果的重跑审计
  • Open teaching material on reproducible modelling
07核心问题

专家对可复现性的提问。

  • 得出某一结果所用的确切模型版本是否已被记录并可检索?
  • 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?
08机制与驱动因素

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.

耦合模型会使这些问题成倍增加,因为每个组成部分都有各自的版本、数据和设置。结果可能取决于某种从未被记录的特定组合。

激励机制也起作用:记录和分享模型需要花费时间,而这很少得到回报。但无法重现的结果无法核实,广泛使用的模型中的错误可能扩散到许多决策中。

09方法与数据

Practices and their limits.

  1. 01

    版本控制

    Recording every change to code and configuration. It requires discipline and shared conventions.

  2. 02

    数据谱系

    借鉴 统计 和数据管理实践,记录每项输入的来源和处理步骤。部分数据无法共享。

  3. 03

    计算环境

    记录软件依赖项,以便模型能够重新运行。长期保存仍然困难。

  4. 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.

10方法

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

  1. 高性能计算、云计算与边缘计算预算内的集合设计 · 工作流编排 · 可复现环境在此应用
  2. 系统工程决策模型的需求 · 耦合模型的接口控制在此应用
  3. 概率与统计贝叶斯校准 · 预测的恰当评分 · 集合统计在此应用
11Where this page’s references

Where this page’s references lead.

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

12问题

问题与解答。

什么是计算可复现性?
在相同的计算环境中,对相同数据重新运行相同代码,从而获得相同结果的能力。
为什么要归档模型代码?
Because without the exact code, others cannot check how results were produced, and errors cannot be found or corrected.
FAIR4RS 原则是什么?
Principles adapting FAIR to research software, so that software is findable, accessible, interoperable and reusable.
Is open-source code required?
开放代码有助于可复现性,但并非总能做到。在无法共享代码的情况下,独立重跑和详尽的文档旨在作为补偿。
什么是数据谱系?
A record of where each input came from and every step applied to it, so that it can be traced and re-created.
可复现性是否意味着模型正确?
不。它意味着结果可以被检验。正确性需要验证和比对。
How are errors corrected?
Through dated corrections linked to the original result, reported via the platform’s trust page.
系统科学与建模

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

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