Azure / Azure/MachineLearningNotebooks

AzureML Python SDK: Model deserialization ignores tags

Đang mở
#1,096 2 bình luận 0 reaction 1 người được giao Được @shivp950 nhận Xem trên GitHub
ADO MLOps product-issue
Ngôn ngữ chính
Jupyter Notebook
Star
4.4k
Fork
2.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Version azureml.core:
1.11.0

```
from azureml.core import Model

model = Model(ws, "MODEL_NAME")
tags_before_serialization = model.tags
serialized = model.serialize()

deserialized_model = Model.deserialize(ws, serialized)
tags_after_serialization = deserialized_model.tags
print(f"Before: {tags_before_serialization}")
print(f"After: {tags_after_serialization}")

```
Result:

```
Before: {'Fit': '0.601', 'BuildId': '271320'}
After: {}
```

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 1517f63f-2d2e-1539-060e-0a471c1c438a
* Version Independent ID: 9e466042-1059-b835-8c92-01e9d9858166
* Content: [azureml.core.model.Model class - Azure Machine Learning Python](https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.model.model?view=azure-ml-py#deserialize-workspace--model-payload-)
* Content Source: [AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.core.model.Model.yml](https://github.com/MicrosoftDocs/MachineLearning-Python-pr/blob/live/AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.core.model.Model.yml)
* Service: **machine-learning**
* Sub-service: **core**
* GitHub Login: @debfro
* Microsoft Alias: **debfro**

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.