tsseg.metrics.Covering
- class tsseg.metrics.Covering(convert_labels_to_segments=False, **kwargs)[source]
Computes the Covering score for a segmentation.
The Covering metric evaluates how well the predicted segments cover the ground truth segments. It is calculated as a weighted sum of the maximum Intersection over Union (IoU) for each ground truth segment, where the weight is the length of the ground truth segment. This implementation is based on the logic proposed in various segmentation evaluation studies.
- __init__(convert_labels_to_segments=False, **kwargs)[source]
Initializes the metric with optional parameters.
Methods
__init__([convert_labels_to_segments])Initializes the metric with optional parameters.
compute(y_true, y_pred)Computes the Covering score.