callcut.evaluation.BaseIntervalMatcher🔗
- class callcut.evaluation.BaseIntervalMatcher[source]🔗
Abstract base class for interval matching strategies.
Matchers pair predicted intervals with ground truth intervals for evaluation purposes. Different matching strategies may use different criteria (IoU, boundary tolerance, etc.).
Methods
match(ground_truth, predictions)Match predicted intervals to ground truth intervals.
Examples
Create a custom matcher by subclassing:
>>> class BoundaryMatcher(BaseIntervalMatcher): ... def __init__(self, tolerance_ms: float = 50.0): ... self._tolerance_ms = tolerance_ms ... ... def match(self, ground_truth, predictions): ... # Match based on onset boundary tolerance ... ...