# Creating Custom Metrics

Let's see how we can create a custom metric for each machine learning problem type. To make things more structured, we have created a separate page for each problem type. The key to creating a custom metric is to write the code for its required functions.

## [Creating a Binary Classification Custom Metric](https://docs.nannyml.com/cloud/v0.24.1/model-monitoring/custom-metrics/creating-custom-metrics/writing-functions-for-binary-classification) <a href="#add-binary-classification-custom-metric" id="add-binary-classification-custom-metric"></a>

## [Creating a Multiclass Classification Custom Metric](https://docs.nannyml.com/cloud/v0.24.1/model-monitoring/custom-metrics/creating-custom-metrics/writing-functions-for-multiclass-classification)

## [Creating a Regression Custom Metric](https://docs.nannyml.com/cloud/v0.24.1/model-monitoring/custom-metrics/creating-custom-metrics/writing-functions-for-regression)

We also discuss more advanced topics such as [handling missing values](https://docs.nannyml.com/cloud/v0.24.1/model-monitoring/custom-metrics/creating-custom-metrics/handling-missing-values) and [creating a custom MTBF metric](https://docs.nannyml.com/cloud/v0.24.1/model-monitoring/custom-metrics/creating-custom-metrics/advanced-tutorial-creating-a-mtbf-custom-metric).


---

# 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://docs.nannyml.com/cloud/v0.24.1/model-monitoring/custom-metrics/creating-custom-metrics.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.
