You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Models can only be registered to the registry in the same workspace where the run was tracked. Cross-workspace operations aren't currently supported in Azure Machine Learning.
64
+
62
65
> [!TIP]
63
66
> Register models from runs or by using the `mlflow.<flavor>.log_model` method from inside the run. This approach preserves lineage from the job that generated the asset.
64
67
65
68
### Create models from assets
66
69
67
70
If you have a folder with an **MLModel** MLflow model, you can register it directly. There's no need for the model to be always in the context of a run. For this approach, you can use the URI schema `file://path/to/model` to register MLflow models stored in the local file system.
68
71
69
-
The following code creates a simple model by using the `Scikit-Learn` package and saves the model in MLflow format in local storage:
72
+
The following code creates a simple model by using the `scikit-learn` package and saves the model in MLflow format in local storage:
70
73
71
74
```python
72
75
from sklearn import linear_model
@@ -160,20 +163,20 @@ You can see the model versions for each model stage by retrieving the model from
Multiple model versions can be in the same stage at the same time in MLflow. In the previous example, the method returns the latest version (most recently published) among all versions for the stage.
166
+
Multiple model versions can be in the same stage at the same time in MLflow. In the previous example, the method returns the latest (most recent) version among all versions for the stage.
164
167
165
168
> [!IMPORTANT]
166
169
> In the MLflow SDK, stage names are case sensitive.
167
170
168
-
### Transition models
171
+
### Transition model version
169
172
170
173
Transitioning a model version to a particular stage can be done by using the MLflow client:
When you transition a model version to a particular stage, if the stage has other model versions, the existing versions remain unchanged. This behavior is by default.
179
+
When you transition a model version to a particular stage, if the stage already has other model versions, the existing versions remain unchanged. This behavior applies by default.
177
180
178
181
Another approach is to set the `archive_existing_versions=True` parameter during the transition. This approach instructs MLflow to move any existing model versions to the stage `Archived`:
179
182
@@ -202,7 +205,7 @@ Editing registered models is supported in both MLflow and Azure Machine Learning
202
205
203
206
### Edit model description and tags
204
207
205
-
You can edit information about a modelby using the MLflow SDK, including the description and tags:
208
+
You can edit a model's description and tags by using the MLflow SDK:
> Machine Learning doesn't support deleting the entire model container. To achieve this task, delete all model versions for a given model.
233
236
234
-
## Review support for managing models with MLflow
237
+
## Review supported capabilities for managing models
235
238
236
239
The MLflow client exposes several methods to retrieve and manage models. The following table lists the methods currently supported in MLflow when connected to Azure Machine Learning. The table also compares MLflow with other models management capabilities in Azure Machine Learning.
237
240
@@ -256,11 +259,11 @@ The MLflow client exposes several methods to retrieve and manage models. The fol
256
259
257
260
Table footnotes:
258
261
259
-
-1: Use Uniform Resource Identifiers (URIs) with the format `runs:/<ruin-id>/<path>`.
260
-
-2: Use URIs with the format `azureml://jobs/<job-id>/outputs/artifacts/<path>`.
261
-
-3: Registered models are immutable objects in Azure Machine Learning.
262
-
-4: Use the search box in Azure Machine Learning studio. Partial matching is supported.
263
-
-5: Use [registries](how-to-manage-registries.md) to move models across different workspaces and preserve lineage.
262
+
-<sup>1</sup> Use Uniform Resource Identifiers (URIs) with the format `runs:/<ruin-id>/<path>`.
263
+
-<sup>2</sup> Use URIs with the format `azureml://jobs/<job-id>/outputs/artifacts/<path>`.
264
+
-<sup>3</sup> Registered models are immutable objects in Azure Machine Learning.
265
+
-<sup>4</sup> Use the search box in Azure Machine Learning studio. Partial matching is supported.
266
+
-<sup>5</sup> Use [registries](how-to-manage-registries.md) to move models across different workspaces and preserve lineage.
0 commit comments