Skip to content

Commit 2cc3442

Browse files
Merge pull request #227822 from santiagxf/santiagxf/mlflow-patch
Update how-to-deploy-mlflow-models-online-endpoints.md
2 parents 37e6c34 + 88a914d commit 2cc3442

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

articles/machine-learning/how-to-deploy-mlflow-models-online-endpoints.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ ms.custom: deploy, mlflow, devplatv2, no-code-deployment, devx-track-azurecli, c
2121
> * [v1](./v1/how-to-deploy-mlflow-models.md)
2222
> * [v2 (current version)](how-to-deploy-mlflow-models-online-endpoints.md)
2323
24-
In this article, learn how to deploy your [MLflow](https://www.mlflow.org) model to an [online endpoint](concept-endpoints.md) for real-time inference. When you deploy your MLflow model to an online endpoint, you don't need to indicate a scoring script or an environment. This characteristic is usually referred as __no-code deployment__.
24+
In this article, learn how to deploy your [MLflow](https://www.mlflow.org) model to an [online endpoint](concept-endpoints.md) for real-time inference. When you deploy your MLflow model to an online endpoint, you don't need to indicate a scoring script or an environment. This characteristic is referred as __no-code deployment__.
2525

2626
For no-code-deployment, Azure Machine Learning
2727

28-
* Dynamically installs Python packages provided in the `conda.yaml` file, this means the dependencies are installed during container runtime.
28+
* Dynamically installs Python packages provided in the `conda.yaml` file. Hence, dependencies are installed during container runtime.
2929
* Provides a MLflow base image/curated environment that contains the following items:
3030
* [`azureml-inference-server-http`](how-to-inference-server-http.md)
3131
* [`mlflow-skinny`](https://github.com/mlflow/mlflow/blob/master/README_SKINNY.rst)
@@ -37,11 +37,11 @@ For no-code-deployment, Azure Machine Learning
3737

3838
## About this example
3939

40-
This example shows how you can deploy an MLflow model to an online endpoint to perform predictions. This example uses an MLflow model based on the [Diabetes dataset](https://www4.stat.ncsu.edu/~boos/var.select/diabetes.html). This dataset contains ten baseline variables, age, sex, body mass index, average blood pressure, and six blood serum measurements obtained from n = 442 diabetes patients, as well as the response of interest, a quantitative measure of disease progression one year after baseline (regression).
40+
This example shows how you can deploy an MLflow model to an online endpoint to perform predictions. This example uses an MLflow model based on the [Diabetes dataset](https://www4.stat.ncsu.edu/~boos/var.select/diabetes.html). This dataset contains ten baseline variables, age, sex, body mass index, average blood pressure, and six blood serum measurements obtained from n = 442 diabetes patients. It also contains the response of interest, a quantitative measure of disease progression one year after baseline (regression).
4141

42-
The model has been trained using an `scikit-learn` regressor and all the required preprocessing has been packaged as a pipeline, making this model an end-to-end pipeline that goes from raw data to predictions.
42+
The model was trained using an `scikit-learn` regressor and all the required preprocessing has been packaged as a pipeline, making this model an end-to-end pipeline that goes from raw data to predictions.
4343

44-
The information in this article is based on code samples contained in the [azureml-examples](https://github.com/azure/azureml-examples) repository. To run the commands locally without having to copy/paste YAML and other files, clone the repo and then change directories to the `cli/endpoints/online` if you are using the Azure CLI or `sdk/endpoints/online` if you are using our SDK for Python.
44+
The information in this article is based on code samples contained in the [azureml-examples](https://github.com/azure/azureml-examples) repository. To run the commands locally without having to copy/paste YAML and other files, clone the repo, and then change directories to the `cli/endpoints/online` if you are using the Azure CLI or `sdk/endpoints/online` if you are using our SDK for Python.
4545

4646
```azurecli
4747
git clone https://github.com/Azure/azureml-examples --depth 1
@@ -58,9 +58,9 @@ Before following the steps in this article, make sure you have the following pre
5858

5959
- An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/).
6060
- Azure role-based access controls (Azure RBAC) are used to grant access to operations in Azure Machine Learning. To perform the steps in this article, your user account must be assigned the owner or contributor role for the Azure Machine Learning workspace, or a custom role allowing Microsoft.MachineLearningServices/workspaces/onlineEndpoints/*. For more information, see [Manage access to an Azure Machine Learning workspace](how-to-assign-roles.md).
61-
- You must have a MLflow model registered in your workspace. Particularly, this example will register a model trained for the [Diabetes dataset](https://www4.stat.ncsu.edu/~boos/var.select/diabetes.html).
61+
- You must have a MLflow model registered in your workspace. Particularly, this example registers a model trained for the [Diabetes dataset](https://www4.stat.ncsu.edu/~boos/var.select/diabetes.html).
6262

63-
Additionally, you will need to:
63+
Additionally, you need to:
6464

6565
# [Azure CLI](#tab/cli)
6666

@@ -86,7 +86,7 @@ Additionally, you will need to:
8686
8787
# [Studio](#tab/studio)
8888
89-
There are no additional prerequisites when working in Azure Machine Learning studio.
89+
There are no more prerequisites when working in Azure Machine Learning studio.
9090
9191
---
9292
@@ -104,7 +104,7 @@ az configure --defaults workspace=<workspace> group=<resource-group> location=<l
104104

105105
# [Python (Azure ML SDK)](#tab/sdk)
106106

107-
The workspace is the top-level resource for Azure Machine Learning, providing a centralized place to work with all the artifacts you create when you use Azure Machine Learning. In this section, we'll connect to the workspace in which you'll perform deployment tasks.
107+
The workspace is the top-level resource for Azure Machine Learning, providing a centralized place to work with all the artifacts you create when you use Azure Machine Learning. In this section, we connect to the workspace in which you perform deployment tasks.
108108

109109
1. Import the required libraries:
110110

@@ -587,7 +587,7 @@ Use the following steps to deploy an MLflow model with a custom scoring script.
587587
raise Exception("Request must contain a top level key named 'input_data'")
588588
589589
serving_input = json.dumps(json_data["input_data"])
590-
data = infer_and_parse_json_input(raw_data, input_schema)
590+
data = infer_and_parse_json_input(serving_input, input_schema)
591591
result = model.predict(data)
592592
593593
result = StringIO()

0 commit comments

Comments
 (0)