pub struct AlertConfig {
pub alpha: f64,
pub min_calibration: usize,
pub max_calibration: usize,
pub lambda: f64,
pub mu_0: f64,
pub sigma_0: f64,
pub adaptive_lambda: bool,
pub grapa_eta: f64,
pub enable_logging: bool,
pub hysteresis: f64,
pub alert_cooldown: u64,
}Expand description
Configuration for conformal alert calibration.
Fields§
§alpha: f64Significance level alpha. FPR is controlled at this level. Lower alpha = more conservative (fewer false alarms). Default: 0.05.
min_calibration: usizeMinimum calibration samples before using conformal threshold. Default: 10.
max_calibration: usizeMaximum calibration samples to retain. Default: 500.
lambda: f64E-process betting fraction lambda. Default: 0.5.
mu_0: f64Null hypothesis mean for standardized residuals (usually 0). Default: 0.0.
sigma_0: f64Null hypothesis std for standardized residuals (usually 1). Default: 1.0.
adaptive_lambda: boolUse adaptive lambda via GRAPA. Default: true.
grapa_eta: f64GRAPA learning rate. Default: 0.1.
enable_logging: boolEnable JSONL-compatible logging. Default: false.
hysteresis: f64Hysteresis factor: require E_t > (1/alpha) * hysteresis to alert. Prevents alert flicker at boundary. Default: 1.1.
alert_cooldown: u64Cooldown observations after alert before allowing another. Default: 5.
Trait Implementations§
Source§impl Clone for AlertConfig
impl Clone for AlertConfig
Source§fn clone(&self) -> AlertConfig
fn clone(&self) -> AlertConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more