# 2.3. Evaluating ML model quality \[CODE PRACTICE]

{% embed url="<https://www.youtube.com/watch?v=QWLw_lJ29k0&list=PL9omX6impEuOpTezeRF-M04BW3VfnPBRF&index=9>" %}

**Video 3**. [Evaluating ML model quality \[CODE PRACTICE\]](https://www.youtube.com/watch?v=QWLw_lJ29k0\&list=PL9omX6impEuOpTezeRF-M04BW3VfnPBRF\&index=9), by Emeli Dral

In this video, we walk you through the code example of ML model quality evaluation using Python and the open-source [Evidently](https://github.com/evidentlyai/evidently) library.

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

**Outline**:\
[00:00](https://www.youtube.com/watch?v=QWLw_lJ29k0\&list=PL9omX6impEuOpTezeRF-M04BW3VfnPBRF\&index=9\&t=0s) Create a working environment and import libraries\
[02:45](https://www.youtube.com/watch?v=QWLw_lJ29k0\&list=PL9omX6impEuOpTezeRF-M04BW3VfnPBRF\&index=9\&t=165s) Prepare datasets for classification and regression models\
[08:25](https://www.youtube.com/watch?v=QWLw_lJ29k0\&list=PL9omX6impEuOpTezeRF-M04BW3VfnPBRF\&index=9\&t=505s) Build and customize classification quality report\
[14:50](https://www.youtube.com/watch?v=QWLw_lJ29k0\&list=PL9omX6impEuOpTezeRF-M04BW3VfnPBRF\&index=9\&t=890s) Save and share the report\
[16:05](https://www.youtube.com/watch?v=QWLw_lJ29k0\&list=PL9omX6impEuOpTezeRF-M04BW3VfnPBRF\&index=9\&t=965s) Display the report in JSON format and as a Python dictionary\
[18:15](https://www.youtube.com/watch?v=QWLw_lJ29k0\&list=PL9omX6impEuOpTezeRF-M04BW3VfnPBRF\&index=9\&t=1095s) Build and customize regression quality report

That’s it! We built an ML model quality report for classification and regression problems and learned how to display it in HTML and JSON formats and as a Python dictionary.


---

# 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-2-ml-monitoring-metrics/ml-model-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.
