将ASA连接到Azure ML Web服务时出现问题 [英] Problem connecting ASA to Azure ML Web Service

查看:56
本文介绍了将ASA连接到Azure ML Web服务时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用Azure ML笔记本创建了一个基本的示例服务(Python 2.7)

工作区

ws =工作区()
workdspace_id = ws.workspace_id
authorization_token = ws.authorization_token

#设置来自azureml导入服务的web服务

@ services.publish(workdspace_id,authorization_token)
@ services.types(pump_id = unicode)
@ services.returns(float)
def verify1(pump_id):
   返回1.0



  1. 当我们尝试通过curl和web服务点击此服务时从门户网站UI测试'功能,我们得到成功的结果。
  2. 然后我们尝试创建一个ASA作业,其输入是ioT Hub和输出是powerBI,处理由Azure ML功能完成。这是我们调用在步骤1中创建的服务的地方。作业查询是
    ,如下所示


WITH output_hub
AS


SELECT
*, verify1 'abc'
as 结果


FROM [device-simulator-hub]



SELECT 结果。[0]


INTO [mlasa]


FROM output_hub


3.3。 
当我们执行此操作时,会出现以下错误。" 调用Azure ML Web服务时遇到错误。使用单个输出
列,解析Azure ML Web服务响应时未找到输出列结果。"。
那么我们在这里做错了吗?


5.  4.  正确
现在服务返回浮动
。我们想要返回的是,单个调用中的多个浮点值。应该是什么来自笔记本的返回类型,以便ASA可以解释
呢?

解决方案


感谢您将此问题提交给我们的见解,w 我想在这个问题上与您进一步合作。您能否发送电子邮件至azcommunity@microsoft.com?请向我们提供您的订阅ID和该主题的URL。如果您可以附上
的屏幕截图这个错误信息,它会有很大帮助。



问候,


宇通


We have created a basic sample service using Azure ML notebook (Python 2.7)

from azureml import Workspace

ws = Workspace()
workdspace_id = ws.workspace_id
authorization_token = ws.authorization_token

# set up web service
from azureml import services
@services.publish(workdspace_id,authorization_token)
@services.types(pump_id=unicode)
@services.returns(float)
def verify1(pump_id):
    return 1.0

  1. When we try hitting this service through curl as well as web service 'Test' functionality from portal's UI, we get successful results.
  2. Then we tried creating an ASA job with input being the ioT Hub and output being the powerBI and the processing is being done by Azure ML function. This is where we are calling the service created in step 1. The job query is as shown below

WITH output_hub AS

(SELECT *, verify1('abc') as result

FROM [device-simulator-hub])

SELECT result.[0]

INTO [mlasa]

FROM output_hub

3. 3.  When we execute this, we get following error. "An error was encountered while calling the Azure ML web service. With a single output column, the output column result was not found when parsing the Azure ML web service response.". So are we doing anything wrong here?

5. 4. Right now the service is returning a float. What we would like to return is, multiple float values in the single call. What should be the return type from notebook so that ASA can interpret it?

解决方案

Hi,

Thank you for taking this issue to our insight, we'd like to work with you further on this issue. Can you please email us at azcommunity@microsoft.com? Please provide us with your subscription ID and the URL for this thread. If you can attach the screenshot of this error message, it will help a lot.

Regards,

Yutong


这篇关于将ASA连接到Azure ML Web服务时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆