我在创建 Azure 机器学习批处理执行活动以执行评分 ML 实验时面临以下问题。请帮忙:
如果需要任何其他相关信息,请告诉我。我是新手,所以,请帮忙
-
创建了 AzureML 链接服务,如下所示:
{ "name": "PredictionAzureML", "properties": { "typeProperties": { "mlEndpoint": "https://ussouthcentral.services.azureml.net/workspaces/xxxxx/jobs", "apiKey": "xxxxxxxx==" }, "type": "AzureML" } }
-
创建的管道如下:
{ "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" } ] } }
-
收到以下错误:
{ "errorCode": "2109", "message": "'linkedservicereference' with reference name 'PredictionAzureML' can't be found.", "failureType": "UserError", "target": "MLActivity" }
我在数据工厂 v2 中得到了这个工作,所以如果你使用的是 v1,请道歉。
尝试将linkedServiceName
作为对象放入typeProperties
外部的 JSON 中,并使用以下结构:
"linkedServiceName": {
"referenceName": "PredictionAzureML",
"type": "LinkedServiceReference"
}
希望对您有所帮助!
请在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>"
}
}
}