Forum Discussion

kipkc09's avatar
kipkc09
New Member
1 year ago
Solved

How to log/register ML model with MLFlow, with the model items in specified folder in workspace

Hi, I'm trying to use MLFlow in Fabric notebook. I have logged the trained model using: mlflow.sklearn.log_model(model1, artifact_path="model_path", signature=signature). I have found that model1 ...
  • v-pnaroju-msft's avatar
    1 year ago

    Thankyou, nilendraFabric, for your response.

    Hi kipkc09,

    We appreciate your inquiry through the Microsoft Fabric Community Forum.

    In addition to the response provided by nilendraFabric , and to facilitate better workspace organization across projects, please find below some approaches that may help resolve the issue:

    1. Prefix model names with project identifiers during registration.

      mlflow.register_model(model_uri, "ProjectA_Model_v1")

    2. Use MLflow tags to organize and filter models.

      mlflow.set_tags({
      "project": "ProjectA",
      "team": "Analytics",
      "version": "v1.0"
      })

    3. Create and log runs to separate experiments per project.

      mlflow.set_experiment("/ProjectA/ML_Experiments")

    If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.

    Thank you.