How to store the machine learning model (sklearn model) to adls and retrieve it?

Nalge, Meghraj 1 Reputation point
2023-06-15T06:14:50.92+00:00

How to store the machine learning model (sklearn model) to adls and retrieve it?

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,562 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,366 Reputation points Moderator
    2023-06-15T16:17:59.01+00:00

    Hello @Nalge, Meghraj

    How did you exported the trained model? using any Python library?

    Did you try below?

    # Retrieve the pickle file from ADLS
    with file_system_client.get_file_client(file_path) as file:
        data = file.readall()
        model = pickle.loads(data)
    
    0 comments No comments

Your answer

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