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