# Model Metrics

> Model Metrics - Learn how to construct and modify DataRobot blueprints through a programmatic
> interface.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-04-24T16:03:56.255852+00:00` (UTC).

## Primary page

- [Model Metrics](https://docs.datarobot.com/en/docs/api/code-first-tools/dr-model-metrics/index.html): Full documentation for this topic (HTML).

## Sections on this page

- [Installation](https://docs.datarobot.com/en/docs/api/code-first-tools/dr-model-metrics/index.html#installation): In-page section heading.

## Related documentation

- [Developer documentation](https://docs.datarobot.com/en/docs/api/index.html): Linked from this page.
- [Code-first tools](https://docs.datarobot.com/en/docs/api/code-first-tools/index.html): Linked from this page.
- [Configure an environment for DMM](https://docs.datarobot.com/en/docs/api/code-first-tools/dr-model-metrics/dmm-environment-setup.html): Linked from this page.
- [Configure data sources](https://docs.datarobot.com/en/docs/api/code-first-tools/dr-model-metrics/dmm-data-sources.html): Linked from this page.
- [Define custom metrics](https://docs.datarobot.com/en/docs/api/code-first-tools/dr-model-metrics/dmm-custom-metrics.html): Linked from this page.
- [Calculate metric values](https://docs.datarobot.com/en/docs/api/code-first-tools/dr-model-metrics/dmm-metric-evaluator.html): Linked from this page.
- [Use the DR Custom Metrics module](https://docs.datarobot.com/en/docs/api/code-first-tools/dr-model-metrics/dmm-dr-custom-metric.html): Linked from this page.
- [Notebook: Create a hosted custom metric from a template with code](https://docs.datarobot.com/en/docs/api/code-first-tools/dr-model-metrics/dmm-hosted-custom-metrics-quickstart.html): Linked from this page.

## Documentation content

# Model Metrics

The `datarobot-model-metrics` (DMM) library provides the tools necessary to compute model metrics over time and produce aggregated metrics. It provides a framework to perform the following operations:

| Topic | Description |
| --- | --- |
| Configure an environment for DMM | Configure an environment to develop custom metrics with the DataRobot Model Metrics library. |
| Configure data sources | Connect to DataRobot to fetch selected data from the DataRobot platform. |
| Define custom metrics | Define custom metrics using the provided default classes. |
| Calculate metric values | Calculate custom metric values over time, by batch, or without data aggregation. |
| Use the DR Custom Metrics module | Facilitate synchronization with existing metrics in DataRobot. |
| Notebook: Create a hosted custom metric from a template with code | Follow a tutorial to create a hosted custom metric using the Python SDK. |

## Installation

The DMM library is published to [PyPI](https://pypi.org/project/datarobot-model-metrics/). To install it, run the following command:

```
pip install datarobot-model-metrics
```
