简体   繁体   中英

How to get output from a web service from a python script in Azure ML

I'm new to Azure ML and I'm trying to implement a python script in Azure ML. I'm trying to deploy the web services, but I'm getting only a string as output.

When I run the python script alone, I'm getting the result, but when implemented in Web service, i'm only getting a statement saying "Execution ok" . Please let me know, how to go about it.

The output returns a Json format.

Following is my output from Python script:

User Patterns
[{"Jane": [{"Thermostat": 20, "Days": [1, 2], "Hour": 6, "Minute": 43}], 
"John": [{"Thermostat": 18, "Days": [1, 2], "Hour": 0, "Minute": 15}], 
"Jen": [{"Thermostat": 22, "Days": [1, 2], "Hour": 10, "Minute": 1}]}]

Missed Patterns
[{"Jane": [], "John": [], "Jen": []}]
Patternsssssssssss [{"Jane": [{"Thermostat": 20, "Days": [1, 2], "Hour": 6, 
"Minute": 43}], "John": [{"Thermostat": 18, "Days": [1, 2], "Hour": 0, 
"Minute": 15}], "Jen": [{"Thermostat": 22, "Days": [1, 2], "Hour": 10, 
"Minute": 1}]}]

您能否确保已将连接的Web服务输出连接到Execute Python脚本的第一个输出端口

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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