seqme.Metric#
- class seqme.Metric[source]#
Abstract base class for defining a metric.
Subclasses implement a callable interface to compute the metric and specify a name and optimization direction.
- __init__()#
- abstract __call__(sequences)[source]#
Calculate the metric for the provided sequences.
- Parameters:
- Return type:
- Returns:
An object containing the metric value and optional deviation.
Methods
Attributes
|
Name of the metric. |
|
Whether lower or higher scores indicate better performance. |