tsseg.metrics.F1Score
- class tsseg.metrics.F1Score(margin=0.01, convert_labels_to_segments=False, **kwargs)[source]
Computes the F1-score for change point detection.
- __init__(margin=0.01, convert_labels_to_segments=False, **kwargs)[source]
Initializes the metric with optional parameters.
Methods
__init__([margin, convert_labels_to_segments])Initializes the metric with optional parameters.
compute(y_true, y_pred)Computes the F1-score, precision, and recall.