IncrementalKSTest#
- class frouros.detectors.data_drift.streaming.statistical_test.IncrementalKSTest(callbacks: Optional[Union[BaseCallbackStreaming, List[BaseCallbackStreaming]]] = 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[BaseCallback]]#
Callbacks property.
- Returns:
callbacks
- Return type:
Optional[List[BaseCallback]]
- property data_type: BaseDataType#
Data type property.
- Returns:
data type
- Return type:
BaseDataType
- 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: BaseStatisticalType#
Statistical type property.
- Returns:
statistical type
- Return type:
BaseStatisticalType
- update(value: Union[int, float]) Tuple[Optional[BaseResult], Dict[str, Any]]#
Update detector.
- Parameters:
value (Union[int, float]) – value to use to update the detector
- Returns:
update result
- Return type:
Optional[BaseResult]