和顺 / 知衡 返回所属 Agent
ZH-09.03

结果适用性检查

原能力

回收方法版本、输入说明、适用条件和异常报告,标出需补算或不能比较的结果。(细化版 p.16–17)

首选项目

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

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

实现与验收要点

判断是否适配目标、样本及输出有效域,并批准补算。