prediction_ratio#

prediction_ratio(true_change_points: ArrayLike, pred_change_points: ArrayLike) float[source]#

Prediction ratio is the ratio of number of predicted to true change points.

Parameters:
true_change_points: array_like

Integer indexes (positions) of true change points

pred_change_points: array_like

Integer indexes (positions) of predicted change points

Returns:
prediction_ratio