模型推斷範例Model inference example

模型推斷 Model inference

此筆記本使用 ElasticNet 模型,並在糖尿病資料集上定型 ,此模型是以訓練 scikit-learn 學習模型和儲存 scikit-learn 學習格式所述。This notebook uses an ElasticNet model trained on the diabetes dataset described in Train a scikit-learn model and save in scikit-learn format. 此筆記本顯示如何:This notebook shows how to:

  • 使用 MLflow 實驗 UI 來選取要部署的模型Select a model to deploy using the MLflow experiment UI
  • 將定型的模型載入為 scikit-learn 學習模型Load the trained model as a scikit-learn model
  • 從模型建立 PySpark UDFCreate a PySpark UDF from the model
  • 套用 UDF 以將預測資料行新增至資料框架Apply the UDF to add a prediction column to a DataFrame

MLflow 推斷筆記本MLflow inference notebook

取得筆記本Get notebook

scikit-learn-瞭解 Azure ML 上的模型部署 scikit-learn model deployment on Azure ML

此筆記本使用以糖尿病資料集定型的 ElasticNet 模型,這些模型 是以訓練 scikit-learn 學習模型和儲存 scikit-learn 學習格式所述。This notebook uses ElasticNet models trained on the diabetes dataset described in Train a scikit-learn model and save in scikit-learn format. 筆記本顯示如何:The notebook shows how to:

  • 使用 MLflow 實驗 UI 來選取要部署的模型Select a model to deploy using the MLflow experiment UI
  • 使用 MLflow API 將模型部署至 Azure MLDeploy the model to Azure ML using the MLflow API
  • 查詢已部署的模型Query the deployed model
  • 針對另一個模型重複部署和查詢程式Repeat the deployment and query process for another model
  • 使用 MLflow API 刪除部署Delete the deployment using the MLflow API

MLflow scikit-learn-瞭解 Azure 筆記本上的模型部署MLflow scikit-learn model deployment on Azure notebook

取得筆記本Get notebook