Skip to content

Commit cfa8a97

Browse files
authored
Merge pull request #105689 from LazaUK/patch-9
Obsolete model reference type, that breaks the code for SDK v.2
2 parents 6102f31 + d0b620d commit cfa8a97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/machine-learning/how-to-train-model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,13 @@ The following examples demonstrate how to register a model in your Azure Machine
299299
300300
```python
301301
from azure.ai.ml.entities import Model
302-
from azure.ai.ml.constants import ModelType
302+
from azure.ai.ml.constants import AssetTypes
303303
304304
run_model = Model(
305305
path="azureml://jobs/{}/outputs/artifacts/paths/model/".format(returned_job.name),
306306
name="run-model-example",
307307
description="Model created from run.",
308-
type=ModelType.MLFLOW
308+
type=AssetTypes.MLFLOW_MODEL
309309
)
310310
311311
ml_client.models.create_or_update(run_model)

0 commit comments

Comments
 (0)