Skip to main content

Overview

Custom Metrics allow you to conduct in-depth analysis on runs, rather than being limited to the summary statistics reported in the platform. See our web app documentation for additional details.

Creating a Custom Metric

You can create a custom metric from local python file implementing custom_metric_function.py as follows:
create CustomMetric from scratch
Alternatively, you can fetch a custom metric from its id:
create CustomMetric from id

Running a Custom Metric

You can then run the custom metric in either of the following two ways
Alternatively, you can run a local script on existing runs as follows:

Updating a Custom Metric

You can update a custom metric’s name, description, or implementation:

Archiving and Restoring

You can archive a custom metric (soft delete) and restore it later:

Refreshing from Server

To refresh a custom metric’s data from the server: