和顺 / 衡律 返回所属 Agent
7.1

方法定义、实现与用途资格

原能力

分别登记方法定义、真实实现、验证证据、用途资格和当前可用性。(合同附件 R7 7.1)

首选项目

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

匹配范围

登记方法实现、运行制品和版本关系。

源码

MLflow · def get_model_version(

mlflow/tracking/client.py · 5162–5175 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
    def get_model_version(self, name: str, version: str) -> ModelVersion:
        """
        Converts the docstring args and returns to google style.

        Args:
            name: Name of the containing registered model.
            version: Version number as an integer of the model version.

        Returns:
            A single :py:class:`mlflow.entities.model_registry.ModelVersion` object.

        .. code-block:: python
            :caption: Example

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.

实现与验收要点

用途资格、验证证据、可用性与人工批准。