Skip to content

CKThompson00/fabric-mlops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft Fabric MLOps Accelerator

This repo is an accelerator help to help kick start using MLOps with Microsoft Fabric. Microsoft Fabric supports mlflow and uses the Azure Machine Learning model registry to support managing models inside of a workspace.

Setup Steps

  1. Create a Development Workspace to contain the artifacts.

  2. Within the workspace create a new folder designating the Project for the given model development work (in my case it is MLOps Framework)

    Folder Structure

  3. Clone this repo

  4. Import the Notebooks from the folder in this repo (4. Promote Model is work in progress and will be available soon)

    Notebooks

    Notebooks

  5. Open up the 1. Prep Notebook

  6. Connect to a Lakehouse

  7. Create a folder named iris and upload the iris.csv file

    upload-iris-csv.png

  8. Execute the notebook. You should now have a table and a file named transformed_iris.parquet

    notebook_1_completion.png

  9. Open up the 2. Model Build Notebook

  10. Execute the notebook. Once completed, you should see an XGBoost-Experiement1 artifact in the root of your workspace.

    xgboost_postbuild.png

  11. Move the file to the Experiments folder (this is to help organize)

    xgboost-experiment-move.png

  12. Open up the 3. Model Validation Notebook

  13. Execute the notebook. Once completed, you should see a new model in the root.

    Model Register

    Move this model to the Models folder in the same way you move the Experiment artifact.

Configuration for your use case

To configure this for your use case, you will need to take a few steps.

  1. Modify the 1. Prep Notebook to reflect the notebook, experiment and model names.

  2. Update the 2. Model Build Notebook with your specific model building logic.

  3. Update the 3. Model Validation Notebook to reflect the metrics you wish to use to determine the quality.

  4. Schedule the Model Build and Validation on a cadence. The Validation is build to be able to be executed over and over and will not register a new model if the metrics are not better.

To Do

These are the todos.

  1. Add a method to move the models between workspaces and execute.

  2. Add logic to call the second notebook from the first once building is complete.

  3. Allow for a dynamic test of the metrics vs a single metric to allow more flexibility.

About

Fabric MLOps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors