简体   繁体   English

使用 python 从 Azure 机器学习服务中删除并列出所有模型和部署服务

[英]Delete and list out the all models and deployment service from Azure Machine Learning Service using python

How to get all models and deployment service from Azure Machine Learning Service and how to delete it using python.如何从 Azure 机器学习服务获取所有模型和部署服务,以及如何使用 python 删除它。

Is there any way to list, delete all models and deployment services from Azure ML Service using python?有没有办法使用 python 从 Azure ML 服务中列出、删除所有模型和部署服务?

The Model Class has methods to help you accomplish this task. 模型类具有帮助您完成此任务的方法。 Check out delete and list methods.查看删除列表方法。

Sample code:示例代码:

from azureml.core import Workspace
ws = Workspace.get(name="your_workspace_name",
           subscription_id='your_subscription_id',
           resource_group='your_resource_group')


from azureml.core import Model
for model in Model.list(ws):
    print('name:', model.name, '\nversion:', model.version, '\n')
Model(ws, name = 'model_name', version = 'model_version').delete()


from azureml.core import Webservice
for webservice in Webservice.list(ws):
    print('name:', webservice.name)
Webservice(ws, name = 'webservice').delete()

Thanks.谢谢。

暂无
暂无

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

相关问题 使用 Z23EEEB4347BDD26BDDFC6B7EE 从 Azure 机器学习服务连接 Azure SQL 数据库时出错 - Error in connecting Azure SQL database from Azure Machine Learning Service using python 从 Java 调用 Python 机器学习服务作为 OS 进程或通过 REST 的微服务 - Calling Python machine learning service from Java as an OS process or micro service via REST Azure Python SDK和Machine Learning Studio Web服务批量执行代码段:TypeError - Azure Python SDK & Machine Learning Studio Web Service Batch Execution Snippet: TypeError Azure机器学习-python - Azure Machine Learning - python 如何将参数传递给Azure机器学习服务中的训练脚本? - How to pass parameters to a training script in Azure Machine Learning service? 使用客户端库列出具有 Google Big Query ML 的数据集的机器学习模型 Python API - using Client lib to list Machine Learning models for a dataset with Google Big Query ML Python API 将我的Python机器学习模型部署为Web服务 - To Deploy my Python machine learning model as web service 从Python到PHP-Azure机器学习 - Python to PHP - Azure Machine Learning How create/delete secrets of Azure service principal by using another service principal with REST API or Python SDK? - How create/delete secrets of Azure service principal by using another service principal with REST API or Python SDK? 从 Azure 机器学习工作区获取所有现有管道 - Getting all existing piplines from an Azure Machine Learning Workspace
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM