MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

models parameter is not documented/add more info on models parameter

Open lordlinus opened this issue 4 years ago • 1 comments

[Enter feedback here]

models take an array of models and links/example on how to create this model using MLFlow or other means e.g. below is an example of how to create an azure model to be used in Model.deploy

model_image, azure_model = mlflow.azureml.build_image(model_uri=model_uri, workspace=workspace, model_name=model_name, image_name=image_name, description="some example description", synchronous=True)

service = Model.deploy(workspace=workspace, name=prod_webservice_name, models=[azure_model], inference_config=inference_config, deployment_config=prod_webservice_deployment_config, deployment_target = aks_target, overwrite=True)


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

lordlinus avatar Jul 05 '21 04:07 lordlinus

Hi @lordlinus, sorry for taking long to come back to your question. We're designing the improved experience to support multi-model or ensemble model. Until then, the workaround is to include multiple models under a directory, and register the directory as a parent model. In your scoring script, use the environment variable AZUREML_MODEL_DIR to get the path to the model root folder. You can refer to child directories, and use them for model ensemble. For more information, please see use more than one model.

dem108 avatar May 26 '22 06:05 dem108