pub struct ThrottleConfig {
pub alpha: f64,
pub mu_0: f64,
pub initial_lambda: f64,
pub grapa_eta: f64,
pub hard_deadline_ms: u64,
pub min_observations_between: u64,
pub rate_window_size: usize,
pub enable_logging: bool,
}Expand description
Configuration for the e-process throttle.
Fields§
§alpha: f64Significance level α. Recompute triggers when W_t ≥ 1/α.
Lower α → more conservative (fewer recomputes). Default: 0.05.
mu_0: f64Prior null hypothesis match rate μ₀. The expected fraction of
observations that are matches under “normal” conditions.
Default: 0.1 (10% of log lines match).
initial_lambda: f64Initial betting fraction. Adaptive GRAPA updates this, but this
sets the starting value. Must be in (0, 1/(1 − μ₀)).
Default: 0.5.
grapa_eta: f64GRAPA learning rate for adaptive lambda. Higher → faster adaptation but noisier. Default: 0.1.
hard_deadline_ms: u64Hard deadline: force recompute if this many milliseconds pass since last recompute, regardless of wealth. Default: 500ms.
min_observations_between: u64Minimum observations between recomputes. Prevents rapid-fire recomputes when every line matches. Default: 8.
rate_window_size: usizeWindow size for empirical match rate estimation. Default: 64.
enable_logging: boolEnable JSONL-compatible decision logging. Default: false.
Trait Implementations§
Source§impl Clone for ThrottleConfig
impl Clone for ThrottleConfig
Source§fn clone(&self) -> ThrottleConfig
fn clone(&self) -> ThrottleConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more