Skip to content

DSL

metametric.dsl

This module contains the domain-specific language (DSL) for defining metrics.

family(metric, reduction)

Creates a metric family.

from_func(func)

Create a metric from a binary function.

macro_average(normalizers)

Macro-average reduction.

micro_average(normalizers)

Micro-average reduction.

preprocess(func, m)

Preprocess the input by some function then apply a metric.

This is the contramap operation on the metric functor.

suite(collection)

Creates a metric suite.