Hello @Tariel Chichua
As per this documentation, i believe your automl job is on regression or classification (binary and multi-class) models trained on tabular structured data.
Next, you register the model from best run.
Got to the model, check in MLmodel file under artifacts tab whether it has sklearn flavor and also download the zip file and extract it to folder.
If you find sklearn flavor, go to notebooks tab , upload the folder downloaded earlier like below.
Execute below code to register new model with sklearn flavor.
import mlflow
from azure.ai.ml.entities import Model
from azure.ai.ml.constants import AssetTypes
ml_client = MLClient(
credential=DefaultAzureCredential(),
subscription_id='subscription_id',
resource_group_name='resource_group',
workspace_name='workspace_name'
)
tmp_model = mlflow.sklearn.load("3hBestmodel")
mlflow.sklearn.save_model(path="custom_mlflow_sklearn_model",sk_model= tmp_model)
mlflow_model = Model(
path="custom_mlflow_sklearn_model",
type=AssetTypes.MLFLOW_MODEL,
name="custom_mlflow_sklearn_model",
description="MLflow model created from local path",
)
ml_client.models.create_or_update(mlflow_model)
Above code will register new mlflow model with only sklearn flavor.
Now got to the registered model and you can create dashboard.
Basically, in MLmodel file below content should not be there especially the azureml.engine
as automl
.
metadata:
azureml.base_image: mcr.microsoft.com/azureml/curated/ai-ml-automl:12
azureml.engine: automl
If you don't find sklearn flavor, then you need to follow steps given here to convert the model to sklearn flavor.
So, above are the workaround for automl models, if you have any query, please let us know in comments or in private message.
Note: Make sure you are having all dependencies for model.
Thank you