Skip to main content

Module stats

Module stats 

Source
Expand description

Statistical primitives used by the detectors.

Each module exposes a small, pure function that takes raw arrays and returns a scalar score. Detectors compose these into a DriftScore with a threshold attached.

Re-exports§

pub use ks::ks_two_sample;
pub use mmd::mmd_rbf;
pub use mmd::MmdEstimator;
pub use psi::psi;
pub use psi::PsiBinning;
pub use wasserstein::sliced_wasserstein;
pub use wasserstein::wasserstein_1d;

Modules§

ks
Two-sample Kolmogorov-Smirnov statistic.
mmd
Maximum Mean Discrepancy with an RBF (Gaussian) kernel.
psi
Population Stability Index.
wasserstein
Wasserstein-1 distance.