简体   繁体   English

自动化Azure机器学习

[英]Automating Azure Machine Learning

Is there a way of automating the calls to the Azure Machine Learning Service (AML)? 有没有一种方法可以自动执行对Azure机器学习服务(AML)的调用?

I've created the web service from AML. 我已经从AML创建了Web服务。 Now I have to do the calls the automated way. 现在,我必须以自动方式进行呼叫。 I'm trying to build a system, that connects to a Raspberry Pi for sensor data and gets a prediction from the ML service to be saved with the data itself. 我正在尝试构建一个系统,该系统连接到Raspberry Pi上以获取传感器数据,并从ML服务获取预测以与数据本身一起保存。

Is there something in Azure to automate this or should I do it within the application? Azure中是否有一些东西可以自动执行此操作,还是应该在应用程序中执行此操作?

I'm assuming you've created the webservice from the experiment and asking about the consumption of the webservice. 我假设您已经从实验中创建了Web服务,并询问了该Web服务的使用情况。 You can consume the webservice from anything that can do an API call to the endpoint. 您可以通过任何可以对端点进行API调用的方式使用Web服务。 I don't know the exact architecture of your solution but take a look at this as it might suit your scenario. 我不知道您的解决方案的确切架构,但是请看一下它,因为它可能适合您的情况。

Stream analytics on Azure has a new feature called Functions(just a heads-up, its still in preview) that can automate the usage of deployed ML services from your account.Since you are trying to gather info from IoT devices, you might use Event Hubs or IoT Hubs to get the data and process it using Stream Analytics and during the process you can use the Webservice as Function in SA to achieve on-the-go ML results. Azure上的流分析具有一项称为功能的新功能(仅提供提示功能,其仍处于预览状态),该功能可以自动使用您帐户中已部署的ML服务的使用。由于您尝试从IoT设备收集信息,因此可以使用事件集线器IoT集线器,以使用Stream Analytics获取数据并对其进行处理,在此过程中,您可以使用SA中的Web服务作为功能来获得移动的ML结果。

Usage is relatively simple if you are familiar with Stream Analytics or SQL queries in general.This link shows the step by step implementation and the usage is below; 如果您通常熟悉Stream Analytics或SQL查询,则用法相对简单。此链接显示了分步实施,用法如下:

    WITH subquery AS (  
    SELECT text, "webservicealias"(text) as result from input  
    )  

    Select text, result.[Score]  
    Into output  
    From subquery  

Hope this helps! 希望这可以帮助!

Mert 莫特

you can also automatically schedule this using powershell command and any task scheduler 您还可以使用powershell命令和任何任务计划程序自动计划

Powershell for Azure ML - https://github.com/hning86/azuremlps and its usage is described here - https://github.com/hning86/azuremlps#invoke-amlwebservicerrsendpoint 适用于Azure ML的Powershell- https://github.com/hning86/azuremlps ,其用法在此处介绍-https: //github.com/hning86/azuremlps#invoke-amlwebservicerrsendpoint

Task Scheduler for powershell - http://www.metalogix.com/help/Content%20Matrix%20Console/SharePoint%20Edition/002_HowTo/004_SharePointActions/012_SchedulingPowerShell.htm Powershell的任务计划程序-http: //www.metalogix.com/help/Content%20Matrix%20Console/SharePoint%20Edition/002_HowTo/004_SharePointActions/012_SchedulingPowerShell.htm

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

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