Week 10
Introduction
This week will introduce how to conduct various types of testing of code, data, and models in ML systems using Python tools of pytest and great expectations.
Learning Objectives
By the end of this week, you will be able to:
- Understand the motivation of moving from notebooks to scripts.
- Understand the principle and types of testing in ML systems.
- Can use
pytestandgreat expectationsto test ML code and data.
Lecture
There are two parts of lecture notes:
Quiz
To access the quiz on Moodle, please check Moodle page.
Practical
Note
To save a copy of notebook to your own GitHub Repo: follow the GitHub link, click on Raw and then Save File As... to save it to your own computer. Make sure to change the extension from .ipynb.txt (which will probably be the default) to .ipynbbefore adding the file to your GitHub repository.
To access the practical: