MODULE REFERENCE

threshold

anomx.detection.detectors.threshold

Threshold-based detector component.

ThresholdDetector

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

Bases: StaticThresholdDetector

Flag anomalies whenever a score column crosses a fixed threshold.

Signature parameters
ParameterTypeDefault
configdict[str, Any] | NoneNone

Members

component_keyattribute
component_nameattribute
component_name = 'Threshold Detector'
component_default_configattribute
component_default_config = {'source_column': 'zscore', 'threshold': 1.5}
component_config_schemaattribute
component_config_schema = {'source_column': {'type': 'string'}, 'threshold': {'type': 'number'}}
detectmethod
detect(predictions: Any) -> pd.DataFrame
Signature parameters
ParameterTypeDefault
predictionsAnyrequired

Returns pd.DataFrame