MODULE REFERENCE

detection

anomx.detection

Scores, decisions, and composable anomaly detection pipelines.

Public exports

Import these names directly from anomx.detection.

AbsoluteErrorScorer

Pass the absolute model score through as the anomaly score.

AdaptiveThresholdDetector

Decide with a threshold derived from the observed score distribution.

AnomalyEvent

One decided anomaly, possibly spanning an interval.

AnomalyEvents

Detector decision output: events plus the labeled score table.

AnomalyPipeline

Compose model, scorer, optional calibrator, and detector into one method.

AnomalyScorer

TimeSeries scorer contract, distinct from legacy scored-table components.

AnomalyScores

Continuous anomaly scores with explicit alignment information.

BaseDetector

Convert continuous scores into decisions or anomaly events.

BaseScorer

Convert model outputs into standardized anomaly scores.

BoundaryScorer

Score anomalies from distances to a learned normality boundary.

CauchyNLLScorer

Cauchy negative log likelihood using robust median and half-IQR estimates.

ChangePointDetector

Decide by detecting distribution shifts in the score sequence.

CompositeScorer

Combine the scores of several child scorers into one score column.

Detector

Convert continuous scores into decisions or anomaly events.

DifferenceScorer

Signed per-component difference ``actual - predicted`` (no fitting).

DirectDataScorer

Score anomalies directly on the observations without a model output.

EventAggregationDetector

Aggregate raw decisions into interval events with severity.

ExponentialNLLScorer

Exponential negative log likelihood for nonnegative prediction samples.

GammaNLLScorer

Gamma negative log likelihood with method-of-moments sample parameters.

GaussianNLLScorer

Gaussian negative log likelihood using sample mean and standard deviation.

GenericDetector

Wrap a detector callable or estimator and normalize binary labels.

GenericScorer

Wrap a scoring callable or estimator with explicit anomaly direction.

IQRDetector

Learn Tukey fences ``Q1 - scale*IQR`` and ``Q3 + scale*IQR``.

KMeansScorer

Euclidean distance to the closest fitted normal-window cluster center.

LaplaceNLLScorer

Laplace negative log likelihood using sample median and absolute deviation.

LikelihoodScorer

Score anomalies from estimated likelihoods.

NLLScorer

Negative log likelihood fitted separately to prediction samples per point.

NormScorer

Absolute component residuals or their vector norm at each timestamp.

PipelineValidationError

Raised when component capabilities do not match the observation set.

PoissonNLLScorer

Poisson negative log likelihood for nonnegative integer observations.

PyODScorer

Adapt a PyOD-compatible estimator's fit/decision_function to windows.

QuantileDetector

Learn lower/upper per-component quantiles from explicit training scores.

QuantileThresholdDetector

Flag the top quantile of a score column as anomalous.

ReconstructionScorer

Score anomalies from reconstruction errors.

RepresentationScorer

Score anomalies from latent-space distances or densities.

ResidualScorer

Score anomalies from prediction or forecast residuals.

ScoreLevel

Alignment level of an anomaly score.

Scorer

Convert model outputs into standardized anomaly scores.

StaticThresholdDetector

Decide with a fixed, configured threshold.

StatisticalDetector

Decide with statistical tests or control-chart rules.

ThresholdDetector

Flag anomalies whenever a score column crosses a fixed threshold.

TimeSeriesThresholdDetector

Flag scores strictly below or above explicit component-wise bounds.

WassersteinScorer

One-dimensional Wasserstein distance from each window to training values.

WindowedAnomalyScorer

Fit and score sliding windows without crossing series boundaries.

ZScoreScorer

Normalize a model score column with a z-score.