简体   繁体   English

如何在 Azure ML 笔记本中定时触发 Python 脚本

[英]How to time tigger a python script in the Azure ML notebooks

Hi I am currently working on a small image classification project where the model classifies whether the image contains potholes or not.嗨,我目前正在做一个小型图像分类项目,模型对图像是否包含坑洞进行分类。 For this section i have wrote the python script, and this script needs to be triggered at scheduled time.对于本节,我编写了 python 脚本,该脚本需要在预定时间触发。 I created a scheduled compute instance but the script doesn't get implemented when the compute instance is running.我创建了一个计划的计算实例,但在计算实例运行时脚本没有实现。 So i want to know what method should i use to get this sorted.所以我想知道我应该用什么方法来排序。

Consider working your way through the Azure ML Pipelines guides (see: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-create-machine-learning-pipelines )考虑按照 Azure ML Pipelines 指南工作(请参阅: https ://docs.microsoft.com/en-us/azure/machine-learning/how-to-create-machine-learning-pipelines)

Once you have a pipeline you can schedule it using: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-trigger-published-pipeline#create-a-schedule一旦你有了一个管道,你可以使用它来安排它: https ://docs.microsoft.com/en-us/azure/machine-learning/how-to-trigger-published-pipeline#create-a-schedule

您不应该为此使用计算实例 - 您应该将 python 代码打包在管道中,确保它已在工作区中注册,然后在该管道上使用调度类

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

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