Skip to content

Commit cbc40b2

Browse files
authored
Update concept-mlflow-models.md
1 parent 3036776 commit cbc40b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/machine-learning/concept-mlflow-models.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ with open(filename, 'wb') as f:
6464

6565
### Models
6666

67-
A model in MLflow is also an artifact. However, we make stronger assumptions about this type of artifacts. Such assumptions provides a clear contract between the saved files and what they mean. When you log your models as artifacts (simple files), you need to know what the model builder meant for each of them in order to know how to load the model for inference. On the contrary, MLflow models can be loaded using the contract specified in the [The MLModel format](concept-mlflow-models.md#the-mlmodel-format).
67+
A model in MLflow is also an artifact. However, we make stronger assumptions about this type of artifacts. Such assumptions provide a clear contract between the saved files and what they mean. When you log your models as artifacts (simple files), you need to know what the model builder meant for each of them in order to know how to load the model for inference. On the contrary, MLflow models can be loaded using the contract specified in the [The MLModel format](concept-mlflow-models.md#the-mlmodel-format).
6868

6969
In Azure Machine Learning, logging models has the following advantages:
7070
> [!div class="checklist"]
@@ -105,6 +105,8 @@ mlflow.sklearn.save_model(sklearn_estimator, "outputs/classifier")
105105

106106
MLflow adopts the MLmodel format as a way to create a contract between the artifacts and what they represent. The MLmodel format stores assets in a folder. Among them, there is a particular file named MLmodel. This file is the single source of truth about how a model can be loaded and used.
107107

108+
![a sample MLflow model in MLmodel format](media/concept-mlflow-models/mlflow-mlmodel.png)
109+
108110
The following example shows how the `MLmodel` file for a computer version model trained with `fastai` may look like:
109111

110112
__MLmodel__

0 commit comments

Comments
 (0)