How databrick save ml model into Azure Storage Container?

2023-01-13T04:08:01.9033333+00:00

I am trying to use mlflow package in databricks to save the model into Azure Storage.

The Script:

abfss_path='abfss://******@dlsgdpeasdev03.dfs.core.windows.net'

project = 'test'

model_version = 'v1.0.1'

model = {model training step}
prefix_model_path = os.path.join(abfss_path, project, model_version)

model_path = prefix_model_path

print(model_path) # abfss://******@dlsgdpeasdev03.dfs.core.windows.net/test/v1.0.1

mlflow.sklearn.save_model(model, model_path)

The message is successfully save the model.

When I check the container and file does not exist, but I am able to load model with the same path. That mean the model file saved in databricks somewhere.

I want to know where is the model file in databricks, and how to save the model directly from databricks notebook to Azure Storage.

Thanks

Azure Machine Learning
Azure Databricks
Azure Databricks

An Apache Spark-based analytics platform optimized for Azure.


1 answer

Sort by: Oldest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.