MODULE REFERENCE

quantile

anomx.detection.detectors.quantile

Quantile-threshold detector component.

QuantileThresholdDetector

QuantileThresholdDetector(config: dict[str, Any] | None = None)

Bases: AdaptiveThresholdDetector

Flag the top quantile of a score column as anomalous.

Signature parameters
ParameterTypeDefault
configdict[str, Any] | NoneNone

Members

component_keyattribute
component_key = 'quantile_threshold'
component_nameattribute
component_name = 'Quantile Threshold Detector'
component_default_configattribute
component_default_config = {'quantile': 0.99, 'source_column': 'score'}
component_config_schemaattribute
component_config_schema = {'quantile': {'type': 'number'}, 'source_column': {'type': 'string'}}
detectmethod
detect(predictions: Any) -> pd.DataFrame
Signature parameters
ParameterTypeDefault
predictionsAnyrequired

Returns pd.DataFrame