prediction_ratio#

prediction_ratio(true_change_points: Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], pred_change_points: Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]) 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