和顺 / 衡律 返回所属 Agent
10.1

因子定义与资产登记

原能力

登记因子定义、身份、范围和来源,区分研究候选与获准用途。(合同附件 R7 10.1)

首选项目

Qlib(MIT)。 Qlib

匹配范围

登记因子表达及实验元数据。

源码

Qlib · class LocalExpressionProvider(

qlib/data/data.py · 835–848 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
class LocalExpressionProvider(ExpressionProvider):
    """Local expression data provider class

    Provide expression data from local data source.
    """

    def __init__(self, time2idx=True):
        super().__init__()
        self.time2idx = time2idx

    def expression(self, instrument, field, start_time=None, end_time=None, freq="day"):
        expression = self.get_expression_instance(field)
        start_time = time_to_slc_point(start_time)
        end_time = time_to_slc_point(end_time)
  • # Copyright (c) Microsoft Corporation.

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

实现与验收要点

资产身份、业务登记权、因子批准与用途关系。