entrenar/eval/drift/mod.rs
1//! Drift Detection Module
2//!
3//! Implements Jidoka (Automation with Human Touch) for detecting when the process
4//! is out of control and signals for help (Retraining).
5//!
6//! Provides statistical tests for detecting data drift and concept drift:
7//! - Kolmogorov-Smirnov test (continuous features)
8//! - Chi-square test (categorical features)
9//! - Population Stability Index (PSI)
10
11mod detector;
12mod statistical;
13mod types;
14
15#[cfg(test)]
16mod tests;
17
18// Re-export all public types
19pub use detector::DriftDetector;
20pub use types::{
21 CategoricalBaseline, DriftCallback, DriftResult, DriftSummary, DriftTest, Severity,
22};
23
24// Re-export statistical functions for testing/advanced use
25pub use statistical::{bin_counts, chi_square_p_value, erf, ks_p_value};