> For the complete documentation index, see [llms.txt](https://docs.nannyml.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nannyml.com/cloud/model-monitoring/custom-metrics/creating-custom-metrics.md).

# 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](/cloud/model-monitoring/custom-metrics/creating-custom-metrics/writing-functions-for-binary-classification.md) <a href="#add-binary-classification-custom-metric" id="add-binary-classification-custom-metric"></a>

## [Creating a Multiclass Classification Custom Metric](/cloud/model-monitoring/custom-metrics/creating-custom-metrics/writing-functions-for-multiclass-classification.md)

## [Creating a Regression Custom Metric](/cloud/model-monitoring/custom-metrics/creating-custom-metrics/writing-functions-for-regression.md)

We also discuss more advanced topics such as [handling missing values](/cloud/model-monitoring/custom-metrics/creating-custom-metrics/handling-missing-values.md) and [creating a custom MTBF metric](/cloud/model-monitoring/custom-metrics/creating-custom-metrics/advanced-tutorial-creating-a-mtbf-custom-metric.md).
