MODULE REFERENCE
detection
anomx.detectionScores, decisions, and composable anomaly detection pipelines.
Public exports
Import these names directly from anomx.detection.
AbsoluteErrorScorerPass the absolute model score through as the anomaly score.
AdaptiveThresholdDetectorDecide with a threshold derived from the observed score distribution.
AnomalyEventOne decided anomaly, possibly spanning an interval.
AnomalyEventsDetector decision output: events plus the labeled score table.
AnomalyPipelineCompose model, scorer, optional calibrator, and detector into one method.
AnomalyScorerTimeSeries scorer contract, distinct from legacy scored-table components.
AnomalyScoresContinuous anomaly scores with explicit alignment information.
BaseDetectorConvert continuous scores into decisions or anomaly events.
BaseScorerConvert model outputs into standardized anomaly scores.
BoundaryScorerScore anomalies from distances to a learned normality boundary.
CauchyNLLScorerCauchy negative log likelihood using robust median and half-IQR estimates.
ChangePointDetectorDecide by detecting distribution shifts in the score sequence.
CompositeScorerCombine the scores of several child scorers into one score column.
DetectorConvert continuous scores into decisions or anomaly events.
DifferenceScorerSigned per-component difference ``actual - predicted`` (no fitting).
DirectDataScorerScore anomalies directly on the observations without a model output.
EventAggregationDetectorAggregate raw decisions into interval events with severity.
ExponentialNLLScorerExponential negative log likelihood for nonnegative prediction samples.
GammaNLLScorerGamma negative log likelihood with method-of-moments sample parameters.
GaussianNLLScorerGaussian negative log likelihood using sample mean and standard deviation.
GenericDetectorWrap a detector callable or estimator and normalize binary labels.
GenericScorerWrap a scoring callable or estimator with explicit anomaly direction.
IQRDetectorLearn Tukey fences ``Q1 - scale*IQR`` and ``Q3 + scale*IQR``.
KMeansScorerEuclidean distance to the closest fitted normal-window cluster center.
LaplaceNLLScorerLaplace negative log likelihood using sample median and absolute deviation.
LikelihoodScorerScore anomalies from estimated likelihoods.
NLLScorerNegative log likelihood fitted separately to prediction samples per point.
NormScorerAbsolute component residuals or their vector norm at each timestamp.
PipelineValidationErrorRaised when component capabilities do not match the observation set.
PoissonNLLScorerPoisson negative log likelihood for nonnegative integer observations.
PyODScorerAdapt a PyOD-compatible estimator's fit/decision_function to windows.
QuantileDetectorLearn lower/upper per-component quantiles from explicit training scores.
QuantileThresholdDetectorFlag the top quantile of a score column as anomalous.
ReconstructionScorerScore anomalies from reconstruction errors.
RepresentationScorerScore anomalies from latent-space distances or densities.
ResidualScorerScore anomalies from prediction or forecast residuals.
ScoreLevelAlignment level of an anomaly score.
ScorerConvert model outputs into standardized anomaly scores.
StaticThresholdDetectorDecide with a fixed, configured threshold.
StatisticalDetectorDecide with statistical tests or control-chart rules.
ThresholdDetectorFlag anomalies whenever a score column crosses a fixed threshold.
TimeSeriesThresholdDetectorFlag scores strictly below or above explicit component-wise bounds.
WassersteinScorerOne-dimensional Wasserstein distance from each window to training values.
WindowedAnomalyScorerFit and score sliding windows without crossing series boundaries.
ZScoreScorerNormalize a model score column with a z-score.