Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Find articles, guides, information and community news

Most Recent
Rufyda
Kudo Kingpin
Kudo Kingpin

MLflow is a powerful tool that helps you manage your machine learning (ML) projects.

In Microsoft Fabric, MLflow makes it easier to train, track, and use your models to make predictions on new data.

 

What is MLflow?


MLflow is an open-source platform to manage the ML lifecycle, including:

Tracking experiments

Logging model parameters and metrics

Saving and versioning models

Reusing models for predictions

 

Using MLflow in Microsoft Fabric helps you organize and reproduce your work easily.

Steps to Use MLflow in Microsoft Fabric:

 

1. Create an Experiment


Start by creating an experiment. Every time you train a model, it will be saved as a run under that experiment. This helps keep track of each version of your model.

 

2. Log Parameters and Metrics

During training, use MLflow to log:

 

Model parameters (like learning rate or depth)

Metrics (like accuracy or RMSE)

This helps you compare different models later.

 

3. Save the Model
After training, save the model in Microsoft Fabric. MLflow stores it along with:

 

The model file (like a .pkl file)

A metadata file called MLmodel

The environment settings to run the model

 

 

What is the MLmodel File?
The MLmodel file includes:

 

Path to the model (where it’s saved)

Flavors (which ML library was used, like scikit-learn)

Signature (what kind of input the model expects and what output it gives)

Customizing Model Behavior


Sometimes your model may need to be adjusted to work with new data. You can customize the input and output schema using MLflow:

Define input columns (e.g., age, gender, BMI)

Define output (e.g., prediction result)

This is important when applying the model to different datasets.

Using the Model for Batch Predictions

 

After saving the model, you can use it to make batch predictions in Microsoft Fabric:

1. Prepare the New Data
Make sure your data is in the correct format. The column names and types should match what the model expects.

 

2. Store Data in Delta Tables
Microsoft Fabric uses Delta Tables to store data in the lakehouse. To save or load data:

 

# Save data
df.write.format("delta").save("Tables/new_table")

# Read data
df = spark.read.format("delta").load("Tables/new_table")

3. Generate Predictions
Once your data is ready, apply the saved model to make predictions. Then, save the results for further use, like showing them in Power BI.

 

Important: Match Data Types
Make sure the data types in your new dataset match the model’s input schema:

Use String for text

Use Integer or Float for numbers

Use Datetime for dates and times

 

If the types don’t match, the model will not work correctly.

 

Conclusion:

 

MLflow in Microsoft Fabric helps you manage your machine learning process from start to finish. It makes it easy to:

Track your training process

Save and reuse models

Apply models to new data

Store and share predictions

 

This helps you build better models and make better decisions using your data.
let’s connect on LinkedIn: https://www.linkedin.com/in/rufyda-abdelhadirahma/

 

Sahir_Maharaj
Super User
Super User

I was chatting with a colleague earlier this week and they mentioned that Power BI intimidates them. Dashboards, DAX, data models… I get it. It feels like you needed a translator just to get started. But that’s exactly why the PL-300 livestream series is so useful. 

Read more...

Rufyda
Kudo Kingpin
Kudo Kingpin


Why Data Scientists Should Start Using Microsoft Fabric Now

Read more...

Sahir_Maharaj
Super User
Super User

Creating a Power BI report is only half the story. How you tell the story behind your data (your design choices, your analytical thinking, and how users interact with your report)  matters just as much.

Read more...

Sahir_Maharaj
Super User
Super User

In this edition, we’re exploring data relationships and how to make sense of them using Microsoft Fabric and the SemPy library. By the time you’re done with this, you’ll have a clear approach to mapping out your data, visualizing those connections, and making sure everything checks out. And because no dataset is perfect, we’ll also dive into validation - making sure your data is as solid as you need it to be.

Read more...

Sahir_Maharaj
Super User
Super User

In this edition, you'll learn how to transform your approach to big data using the powerful integration of Azure OpenAI, SynapseML, and Microsoft Fabric. You'll explore how Azure OpenAI acts as the brain for natural language understanding and generation, while SynapseML serves as the computational muscle for scalable machine learning. By the end, you'll be equipped with the knowledge and confidence to create AI-driven workflows that deliver actionable insights and drive impactful decisions.

Read more...

Sahir_Maharaj
Super User
Super User

In this edition, you’ll understand what Data Wrangler is and how it fits into your data preparation toolkit. Whether you’re an experienced analyst or someone stepping into the world of data, this read will equip you with practical knowledge to handle data preparation like a pro.

Read more...

Sahir_Maharaj
Super User
Super User

In this edition, you’ll gain an understanding of SemPy and its transformative role within Microsoft Fabric. Whether you're taking your first steps into semantic modeling or you’re a seasoned pro looking to streamline your workflow, this read is designed to meet you where you are and elevate your capabilities.

Read more...

Sahir_Maharaj
Super User
Super User

In this edition, we'll walk through what’s new and upcoming for Fabric Data Science and understand why these updates are worth your attention. Whether you’re a senior data scientist or someone just getting started, there’s something here for you. I think this is a big deal, and I can't wait to share with you exactly what's coming and how these updates will make your data science work more efficient, powerful, and downright enjoyable.

Read more...

Sahir_Maharaj
Super User
Super User

In this edition, I'm going to guide you through how to explore and visualize data using Microsoft Fabric notebooks. We'll start by understanding why this tool is so helpful for your workflow, then move on to how you can make use of its unique capabilities. By the end of this post, you'll know how to effectively use Microsoft Fabric notebooks to explore your data, visualize key insights, and streamline your data analysis process. Stick with me, and let's explore into what makes this tool a game changer for data professionals.

Read more...

Sahir_Maharaj
Super User
Super User

In this edition, I’ll walk you through why ingesting data into a Microsoft Fabric lakehouse matters, how Apache Spark plays a pivotal role in this process, and ultimately, how you can do it yourself. Whether you’re an experienced data scientist, data engineer or a data analyst wanting to expand your toolkit - this guide is for you.

Read more...

Sahir_Maharaj
Super User
Super User

In this edition, I aim to guide you through what exactly data science in Microsoft Fabric is, why it’s transformative, and how it could reshape the way you interact with data. Whether you're just starting out or you're a seasoned expert in the data field, there's something for everyone here.

Read more...

Sahir_Maharaj
Super User
Super User

This edition will help you unlock the potential of Microsoft Fabric by walking through the key components of a data science workflow. By the end, you'll not only understand the core elements of this platform, but also how to use it effectively.

Read more...