Loading...

Microsoft Fabric Machine Learning Tutorial - Part 3 - Testing Notebooks

Microsoft Fabric Machine Learning Tutorial - Part 3 - Testing Notebooks

In part 3 of this course Barry Smart, Director of Data and AI, walks through a demo showing how to apply a test driven development approach to Microsoft Fabric Notebooks that will allow you to establish a set of tests that can be automated, whilst also driving code that is clean, extensible, re-usable and easy to understand.

He will focus on the notebook which applies the data wrangling steps to "project to gold". Focusing in on the logic which is used to clean and enrich the passenger data for the Titanic.

Barry splits this logic into 3 notebooks:

  • The first defines the functionality as a series of discrete data wrangling functions, wrapped up in a Titanic Wrangler class. He uses the Pandas pipe method to chain these individual functions together to perform all of the tasks necessary to clean and enrich the passenger data.
  • The second notebook tests this functionality, by using the Arrange, Act, Assert (AAA) pattern.
  • The final notebook puts this functionality in use as part of the wider "project to gold" process which projects a fact table and a set of dimension tables to the Gold area of the lake in Delta format.

Barry begins the video by explaining the architecture that is being adopted in the demo including Medallion Architecture and DataOps practices. He explains how these patterns have been applied to create a data product that provides Diagnostic Analytics of the Titanic data set. This forms part of an end to end demo of Microsoft Fabric that we will be providing as a series of videos over the coming weeks.

Chapters:

  • 00:00 Introduction and Video Overview
  • 00:46 Project to Gold Pipeline
  • 01:08 Benefits and Pitfalls of Notebooks
  • 04:20 Addressing Notebook Pitfalls with DataOps
  • 05:12 Test-Driven Development in Data Engineering
  • 08:03 Implementing the Titanic Wrangler Class
  • 09:17 Testing the Titanic Wrangler Class
  • 10:52 Running the Code in Production
  • 12:15 Conclusion and Next Steps

From Descriptive to Predictive Analytics with Microsoft Fabric:

Microsoft Fabric End to End Demo Series:

Microsoft Fabric First Impressions:

Decision Maker's Guide to Microsoft Fabric

and find all the rest of our content here.

Published on:

Learn more
endjin.com
endjin.com

We help small teams achieve big things.

Share post:

Related posts

How to Implement Generation in RAG

Understand the generation step of RAG: how LLMs use augmented context to produce grounded responses, how to enforce structured outputs with Py...

1 day ago

How to Implement Augmentation in RAG

Understand the augmentation step of RAG: how retrieved documents are structured into prompts, how metadata and citations improve response qual...

2 days ago

How to Implement Retrieval in RAG

Understand the retrieval step of RAG: Learn how database queries, keyword search, vector search, and hybrid approaches find the right informat...

2 days ago

TypeDeclaration: An Abstraction for Understanding JSON Schema

The Corvus.Json.CodeGeneration library analyses JSON Schema and builds a TypeDeclaration tree that maps schema patterns to code patterns. The ...

6 days ago

Optimising DAX: Practical Examples

The final post in the Optimising DAX series: the CALCULATE trap, variables and IF.EAGER, slicer costs, and a practical approach to isolating s...

7 days ago

Optimising DAX: Data Materialisation

Data materialisation is when the storage engine gives up on efficient processing and rebuilds the entire table. This post explains what trigge...

8 days ago

Building API Reference Documentation From Code, Part 2: Under the Hood

A deep dive into the cross-assembly linking, PDB-based source links, TFM scanning, enrichment merging, and search indexing that power our API ...

9 days ago

Building API Reference Documentation From Code, Part 1: The Pipeline

We generate about 8,800 API reference pages from 16 libraries across two engine versions, with source links, TFM availability badges, and hand...

10 days ago

Writing Effective Copilot Instructions for Complex Codebases

A flat copilot-instructions.md works for small projects. When your codebase hits 500k lines, 19 projects, and multiple code generators, you ne...

13 days ago

Optimising DAX: The Formula Engine and Storage Engine

When you execute a DAX query, two engines divide up the work. Understanding the split between the formula engine and the storage engine is key...

13 days ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.