在 Azure 数据工厂中执行 Azure 机器学习管道Execute Azure Machine Learning pipelines in Azure Data Factory

适用于:是 Azure 数据工厂是 Azure Synapse Analytics(预览版)APPLIES TO: yesAzure Data Factory yesAzure Synapse Analytics (Preview)

作为 Azure 数据工厂管道的一个步骤,运行 Azure 机器学习管道。Run your Azure Machine Learning pipelines as a step in your Azure Data Factory pipelines. 机器学习执行管道活动支持批量预测方案,例如识别可能的贷款违约、确定情绪以及分析客户行为模式。The Machine Learning Execute Pipeline activity enables batch prediction scenarios such as identifying possible loan defaults, determining sentiment, and analyzing customer behavior patterns.

语法Syntax

{
    "name": "Machine Learning Execute Pipeline",
    "type": "AzureMLExecutePipeline",
    "linkedServiceName": {
        "referenceName": "AzureMLService",
        "type": "LinkedServiceReference"
    },
    "typeProperties": {
        "mlPipelineId": "machine learning pipeline ID",
        "experimentName": "experimentName",
        "mlPipelineParameters": {
            "mlParameterName": "mlParameterValue"
        }
    }
}

Type 属性Type properties

propertiesProperty 说明Description 允许的值Allowed values 必选Required
namename 管道中活动的名称Name of the activity in the pipeline StringString Yes
typetype 活动类型为“AzureMLExecutePipeline”Type of activity is 'AzureMLExecutePipeline' StringString Yes
linkedServiceNamelinkedServiceName Azure 机器学习链接服务Linked Service to Azure Machine Learning 链接服务引用Linked service reference Yes
mlPipelineIdmlPipelineId 已发布 Azure 机器学习管道的 IDID of the published Azure Machine Learning pipeline 字符串(或带有 resultType 字符串的表达式)String (or expression with resultType of string) Yes
experimentNameexperimentName 机器学习管道运行的运行历史记录试验名称Run history experiment name of the Machine Learning pipeline run 字符串(或带有 resultType 字符串的表达式)String (or expression with resultType of string) No
mlPipelineParametersmlPipelineParameters 要传递给已发布 Azure 机器学习管道终结点的键/值对。Key, Value pairs to be passed to the published Azure Machine Learning pipeline endpoint. 键必须与已发布机器学习管道中定义的管道参数名称一致Keys must match the names of pipeline parameters defined in the published Machine Learning pipeline 具有键/值对的对象(或具有 resultType 对象的表达式)Object with key value pairs (or Expression with resultType object) No
mlParentRunIdmlParentRunId 父 Azure 机器学习管道运行 IDThe parent Azure Machine Learning pipeline run ID 字符串(或带有 resultType 字符串的表达式)String (or expression with resultType of string) No
continueOnStepFailurecontinueOnStepFailure 当某个步骤失败时,继续执行机器学习管道运行中的其他步骤Whether to continue execution of other steps in the Machine Learning pipeline run if a step fails booleanboolean No

备注

若要填充机器学习管道名称和 ID 中的下拉项,用户需要具有列出 ML 管道的权限。To populate the dropdown items in Machine Learning pipeline name and ID, the user needs to have permission to list ML pipelines. ADF UX 直接使用已登录用户的凭据调用 AzureMLService API。ADF UX calls AzureMLService APIs directly using the logged in user's credentials.

后续步骤Next steps

参阅以下文章了解如何以其他方式转换数据:See the following articles that explain how to transform data in other ways: