Skip to content

Commit fc8f182

Browse files
committed
Adjust language and formatting
1 parent 10cc996 commit fc8f182

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/machine-learning/v1/how-to-deploy-advanced-entry-script.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This article explains how to write entry scripts for specialized use cases in Az
2222

2323
## Prerequisites
2424

25-
* A trained machine learning model that you intend to deploy with Azure Machine Learning. For more information about model deployment, see [Deploy machine learning models to Azure](how-to-deploy-and-where.md).
25+
A trained machine learning model that you intend to deploy with Azure Machine Learning. For more information about model deployment, see [Deploy machine learning models to Azure](how-to-deploy-and-where.md).
2626

2727
## Automatically generate a Swagger schema
2828

@@ -111,7 +111,7 @@ def run(Inputs, GlobalParameters):
111111
```
112112

113113
> [!TIP]
114-
> The return value from the script can be any Python object that's serializable to JSON. For example, if your model returns a Pandas dataframe that contains multiple columns, you might use an output decorator similar to the following code:
114+
> The return value from the script can be any Python object that's serializable to JSON. For example, if your model returns a Pandas dataframe that contains multiple columns, you can use an output decorator that's similar to the following code:
115115
>
116116
> ```python
117117
> output_sample = pd.DataFrame(data=[{"a1": 5, "a2": 6}])
@@ -249,7 +249,7 @@ def run(request):
249249
> ```
250250
251251
> [!WARNING]
252-
> Azure Machine Learning only routes POST and GET requests to the containers that run the scoring service. Errors can result if browsers use OPTIONS requests to issue preflight requests.
252+
> Azure Machine Learning routes only POST and GET requests to the containers that run the scoring service. Errors can result if browsers use OPTIONS requests to issue preflight requests.
253253
254254
## Load registered models
255255
@@ -307,7 +307,7 @@ second_model = Model(ws, name="my_second_model", version=2)
307307
service = Model.deploy(ws, "myservice", [first_model, second_model], inference_config, deployment_config)
308308
```
309309
310-
In the Docker image that hosts the service, the `AZUREML_MODEL_DIR` environment variable contains the directory where the models are located. In this directory, each model is located in a directory path of `<model-name>/<version>`. In this path, `<model-name>` is the name of the registered model, and `<version>` is the version of the model. The files that make up the registered model are stored in these directories.
310+
In the Docker image that hosts the service, the `AZUREML_MODEL_DIR` environment variable contains the folder where the models are located. In this folder, each model is located in a folder path of `<model-name>/<version>`. In this path, `<model-name>` is the name of the registered model, and `<version>` is the version of the model. The files that make up the registered model are stored in these folders.
311311
312312
In this example, the path of the first model is `$AZUREML_MODEL_DIR/my_first_model/1/my_first_model.pkl`. The path of the second model is `$AZUREML_MODEL_DIR/my_second_model/2/my_second_model.pkl`.
313313
@@ -323,7 +323,7 @@ second_model_path = os.path.join(os.getenv('AZUREML_MODEL_DIR'), second_model_na
323323
324324
### get_model_path
325325
326-
When you register a model, you provide a model name that's used for managing the model in the registry. You use this name with the [`Model.get_model_path`](/python/api/azureml-core/azureml.core.model.model#azureml-core-model-model-get-model-path) method to retrieve the path of the model file or files on the local file system. If you register a folder or a collection of files, this API returns the path of the directory that contains those files.
326+
When you register a model, you provide a model name that's used for managing the model in the registry. You use this name with the [`Model.get_model_path`](/python/api/azureml-core/azureml.core.model.model#azureml-core-model-model-get-model-path) method to retrieve the path of the model file or files on the local file system. If you register a folder or a collection of files, this API returns the path of the folder that contains those files.
327327
328328
When you register a model, you give it a name. The name corresponds to where the model is placed, either locally or during service deployment.
329329

0 commit comments

Comments
 (0)