方法检验
原能力
向衡律提交需要计算或回测的问题,核对结果是否匹配原研究目标。(细化版 p.16–17)
首选项目
MLflow(Apache-2.0(开源仓库))。 MLflow
匹配范围
Run 记录和测试夹具对照衡律交付。
源码
MLflow · def get_run(
mlflow/tracking/client.py · 452–465 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def get_run(self, run_id: str) -> Run:
"""
Fetch the run from backend store. The resulting :py:class:`Run <mlflow.entities.Run>`
contains a collection of run metadata -- :py:class:`RunInfo <mlflow.entities.RunInfo>`,
as well as a collection of run parameters, tags, and metrics --
:py:class:`RunData <mlflow.entities.RunData>`. It also contains a collection of run
inputs (experimental), including information about datasets used by the run --
:py:class:`RunInputs <mlflow.entities.RunInputs>`. In the case where multiple metrics with
the same key are logged for the run, the :py:class:`RunData <mlflow.entities.RunData>`
contains the most recently logged value at the largest step for each metric.
Args:
run_id: Unique identifier for the run.
实现与验收要点
提供具名方法、允许误差、原验证输入和责任。