# 5.4. Test ML model outputs and quality \[CODE PRACTICE]

{% embed url="<https://youtu.be/AcVhZeQvjSo?si=X9sleg-hV6kjbfJz>" %}

**Video 4**. [Test ML model outputs and quality \[CODE PRACTICE\]](https://youtu.be/AcVhZeQvjSo?si=X9sleg-hV6kjbfJz), by Emeli Dral

In this video, we test the quality of the model outputs after we generate the predictions. We also test the model quality after we get the new labeled data.

**Want to go straight to code?** Here is the [example notebook](https://github.com/evidentlyai/ml_observability_course/blob/main/module5/model_quality_practice.ipynb) to follow along.

**Outline:**\
[00:00](https://www.youtube.com/watch?v=AcVhZeQvjSo\&t=0s) Introduction\
[00:44](https://www.youtube.com/watch?v=AcVhZeQvjSo\&t=44s) Imports\
[02:04](https://www.youtube.com/watch?v=AcVhZeQvjSo\&t=124s) Data loading and prep\
[06:10](https://www.youtube.com/watch?v=AcVhZeQvjSo\&t=370s) Load the model and get predictions\
[09:41](https://www.youtube.com/watch?v=AcVhZeQvjSo\&t=581s) Test model outputs and interpret the results\
[13:38](https://www.youtube.com/watch?v=AcVhZeQvjSo\&t=818s) Run tests for the next batch of data\
[15:20](https://www.youtube.com/watch?v=AcVhZeQvjSo\&t=920s) Test the model quality


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.evidentlyai.com/ml-observability-course/module-5-ml-pipelines-validation-and-testing/test-ml-model-outputs-quality-code-practice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
