模式搜索记录与检验依据
原能力
记录搜索次数、参数及所用样本,形成统计确认所需的完整试验账。(合同附件 R7 9.9)
首选项目
MLflow(Apache-2.0(开源仓库))。 MLflow
匹配范围
Runs 与制品存储记录模式搜索参数和输入。
源码
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.
DVC · def to_lockfile(
dvc/stage/serialize.py · 195–208 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def to_lockfile(stage: "PipelineStage", **kwargs) -> dict:
assert stage.name
return {stage.name: to_single_stage_lockfile(stage, **kwargs)}
def to_single_stage_file(stage: "Stage", **kwargs):
state = stage.dumpd(**kwargs)
# When we load a stage we parse yaml with a fast parser, which strips
# off all the comments and formatting. To retain those on update we do
# a trick here:
# - reparse the same yaml text with a slow but smart ruamel yaml parser
# - apply changes to a returned structure
# - serialize it
实现与验收要点
试验账、登记检验家族、封存样本和时间点快照。