Azure / Azure/MachineLearningNotebooks

AzureML Python SDK: Model deserialization ignores tags

Open
#1,096 2 comments 0 reactions 1 assignee Claimed by @shivp950 View on GitHub
ADO MLOps product-issue
Dominant language
Jupyter Notebook
Stars
4.4k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

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**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.