1

在创建 Azure 机器学习批处理执行活动以执行评分 ML 实验时,我面临以下问题。请帮忙:

如果需要任何其他相关信息,请告诉我。我是新手,所以请帮忙

  1. 创建了一个 AzureML 链接服务,如下所示:

    {
    "name": "PredictionAzureML",
    "properties": {
    "typeProperties": {
    "mlEndpoint": "https://ussouthcentral.services.azureml.net/workspaces/xxxxx/jobs",
    "apiKey": "xxxxxxxx=="
    },
    "type": "AzureML"
    }
    }
    
  2. 创建管道如下:

    {
    "name": "pipeline1",
    "properties": {
    "description": "use AzureML model",
    "activities": [
    {
    "name": "MLActivity",
    "description": "description",
    "type": "AzureMLBatchExecution",
    "policy": {
    "timeout": "02:00:00",
    "retry": 1,
    "retryIntervalInSeconds": 30
    },
    "typeProperties": {
    "webServiceInput": "PredictionInputDataset",
    "webServiceOutputs": {
    "output1": "PredictionOutputDataset"
    }
    },
    "inputs": [
    {
    "name": "PredictionInputDataset"
    }
    ],
    "outputs": [
    {
    "name": "PredictionOutputDataset"
    }
    ],
    "linkedServiceName": "PredictionAzureML"
    }
    ]
    }
    }
    
  3. 收到以下错误:

     {
    "errorCode": "2109",
    "message": "'linkedservicereference' with reference name 'PredictionAzureML' can't be found.",
    "failureType": "UserError",
    "target": "MLActivity"
    }
    
4

2 回答 2

0

请在 UX 中使用“触发器”而不是“调试”。在单击“触发器”按钮之前,您需要先发布您的管道。请按照此文档更新您的有效负载。它应该如下所示。 { "name": "AzureMLExecutionActivityTemplate", "description": "description", "type": "AzureMLBatchExecution", "linkedServiceName": { "referenceName": "AzureMLLinkedService", "type": "LinkedServiceReference" }, "typeProperties": { "webServiceInputs": { "<web service input name 1>": { "LinkedServiceName":{ "referenceName": "AzureStorageLinkedService1", "type": "LinkedServiceReference" }, "FilePath":"path1" }, "<web service input name 2>": { "LinkedServiceName":{ "referenceName": "AzureStorageLinkedService1", "type": "LinkedServiceReference" }, "FilePath":"path2" }
}, "webServiceOutputs": { "<web service output name 1>": { "LinkedServiceName":{ "referenceName": "AzureStorageLinkedService2", "type": "LinkedServiceReference"
}, "FilePath":"path3" }, "<web service output name 2>": { "LinkedServiceName":{ "referenceName": "AzureStorageLinkedService2", "type": "LinkedServiceReference"
}, "FilePath":"path4" }
}, "globalParameters": { "<Parameter 1 Name>": "<parameter value>", "<parameter 2 name>": "<parameter 2 value>" } } }

于 2018-06-11T02:01:31.190 回答
0

我在 Data Factory v2 中得到了这个工作,如果您使用的是 v1,请道歉。

尝试将linkedServiceName作为对象放在 JSON 之外,typeProperties并使用以下结构:

"linkedServiceName": {
  "referenceName": "PredictionAzureML",
  "type": "LinkedServiceReference"
}

希望有帮助!

于 2018-06-11T02:01:59.730 回答