IncrementalKSTest#

class frouros.detectors.data_drift.streaming.statistical_test.IncrementalKSTest(callbacks: Optional[Union[Callback, List[Callback]]] = None, window_size: int = 10)#

IncrementalKSTest (Incremental Kolmogorov-Smirnov test) [dos2016fast] detector.

References:

[dos2016fast]

dos Reis, Denis Moreira, et al. “Fast unsupervised online drift detection using incremental kolmogorov-smirnov test.” Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining. 2016.

property window_size: int#

Window size property.

Returns:

window size

Return type:

int

property X_ref: Optional[ndarray]#

Reference data property.

Returns:

reference data

Return type:

Optional[numpy.ndarray]

property callbacks: Optional[List[Callback]]#

Callbacks property.

Returns:

callbacks

Return type:

Optional[List[Callback]]

property data_type: DataTypeBase#

Data type property.

Returns:

data type

Return type:

DataTypeBase

fit(X: ndarray, **kwargs) Dict[str, Any]#

Fit detector.

Parameters:

X (numpy.ndarray) – feature data

Returns:

callbacks logs

Return type:

Dict[str, Any]

reset() None#

Reset method.

property statistical_type: StatisticalTypeBase#

Statistical type property.

Returns:

statistical type

Return type:

StatisticalTypeBase

update(value: Union[int, float]) Optional[ResultBase]#

Update detector.

Parameters:

value (Union[int, float]) – value to use to update the detector

Returns:

update result

Return type:

Optional[ResultBase]