prediction_ratio#

prediction_ratio(true_change_points: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str |bytes], pred_change_points: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str |bytes]) float[source]#

预测比例是预测变化点数量与真实变化点数量之比。

参数:
true_change_points: 类数组对象

真实变化点的整数索引(位置)

pred_change_points: 类数组对象

预测变化点的整数索引(位置)

返回:
prediction_ratio