MannWhitneyUTest#

class frouros.detectors.data_drift.batch.statistical_test.MannWhitneyUTest(callbacks: Optional[Union[BaseCallbackBatch, List[BaseCallbackBatch]]] = None)#

Mann–Whitney U test [mann1947test] detector.

References:

[mann1947test]

Mann, Henry B., and Donald R. Whitney. “On a test of whether one of two random variables is stochastically larger than the other.” The annals of mathematical statistics (1947): 50-60.

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]]

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

Compare values.

Parameters:

X (numpy.ndarray) – feature data

Returns:

compare result and callbacks logs

Return type:

Tuple[numpy.ndarray, Dict[str, Any]]

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