mvtsa.evaluation.change_point_scores#

mvtsa.evaluation.change_point_scores(true, pred, margin=5, n_samples=None)[source]#

Precision, recall and F1 of change points with a tolerance margin.

A predicted change point is a true positive if it lies within margin samples of a true one that has not been matched yet (greedy matching in order of distance). With no true and no predicted change points all scores are 1.