和顺 / 衡律 返回所属 Agent
14.7

研究结果与配置候选的衔接

原能力

将研究和配置计算映射为候选方案,固定输入、口径和实际依赖。(合同附件 R7 14.7)

首选项目

MLflow(Apache-2.0(开源仓库))。 MLflow

匹配范围

读取经版本化的研究结果及验证候选输入。

源码

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.

Pandera · def validate(

pandera/api/pandas/container.py · 127–140 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
    def validate(
        self,
        check_obj: pd.DataFrame,
        head: int | None = None,
        tail: int | None = None,
        sample: int | None = None,
        random_state: int | None = None,
        lazy: bool = False,
        inplace: bool = False,
    ) -> pd.DataFrame:
        """Validate a DataFrame based on the schema specification.

        :param pd.DataFrame check_obj: the dataframe to be validated.
        :param head: validate the first n rows. Rows overlapping with `tail` or

实现与验收要点

候选形成规则、引用闭包、模型用途与资格。