Skip to content

MetricDefinition


dataclass backtide.metrics.MetricDefinition

Metadata describing a built-in performance metric.

Attributes

key : str

Stable key stored in experiment results.

name : str
Human-readable display name.

description : str
Short explanation of the metric.

percentage : bool
Whether the value is a fractional percentage.

higher_is_better : bool
Whether larger values rank ahead of smaller values.