简体   繁体   English

Azure机器学习Web服务输入数据问题

[英]Azure Machine Learning Web service Input Data Issue

I have created an Azure ML webservice as an example and face an unknown error when it comes to deploy a web service. 我以创建一个Azure ML Web服务为例,在部署Web服务时遇到未知错误。 The error comes without an explanation, so it's hard to trace. 错误没有解释,因此很难跟踪。

When running the experiment within the studio, the experiment was running without any issue. 在Studio中运行实验时,实验运行没有任何问题。 However, when deploy to webservice, the test function has failed with the same input as in the studio. 但是,当部署到Web服务时,测试功能以与Studio中相同的输入失败。

I have also published a sample of the service to see if anyone can see what the issue is. 我还发布了该服务的示例,以查看是否有人可以看到问题所在。

https://gallery.cortanaintelligence.com/Experiment/mywebservice-1 https://gallery.cortanaintelligence.com/Experiment/mywebservice-1

Some info about the service: 有关该服务的一些信息:

The service takes input as a string represented for a sparse feature vector of svmlight format. 该服务将输入作为代表svmlight格式的稀疏特征向量的字符串。 It will return the predicted class for the input feature vector. 它将返回输入特征向量的预测类。 The error fails when running the test function from the deployed service while the experiment within the studio is running without any issue. 在Studio中运行实验而没有任何问题时,从已部署的服务运行测试功能时,错误将失败。

Hope anyone has an idea how it went wrong. 希望任何人都知道它是怎么发生的。

Using test dialog means you are using request-response service which is a real-time API. 使用测试对话框意味着您正在使用实时API的请求响应服务。 This has http timeout as maximum time to complete the request. 这具有http超时作为完成请求的最长时间。 Since the feature vector is too long, the request is getting timed out. 由于特征向量过长,因此请求超时。 Can you please try to use batch execution service as described below 您能否按如下所述尝试使用批处理执行服务

https://azure.microsoft.com/en-us/documentation/articles/machine-learning-consume-web-services/#batch-execution-service-bes https://azure.microsoft.com/zh-CN/documentation/articles/machine-learning-consume-web-services/#batch-execution-service-bes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM