pub struct QualityGateConfig {
pub max_variance_ratio: f64,
pub min_kl_sum: f64,
pub max_time_multiplier: f64,
pub time_budget_secs: f64,
pub max_samples: usize,
pub pass_threshold: f64,
pub fail_threshold: f64,
pub enable_drift_detection: bool,
pub drift_thresholds: DriftThresholds,
}Expand description
Configuration for quality gate thresholds.
Fields§
§max_variance_ratio: f64Maximum variance ratio (posterior/prior) before declaring data uninformative. Default: 0.5 (posterior variance must be at most 50% of prior).
min_kl_sum: f64Minimum sum of recent KL divergences before declaring learning stalled. Default: 0.001
max_time_multiplier: f64Maximum extrapolated time as multiple of budget. Default: 10.0 (stop if estimated time > 10x budget).
time_budget_secs: f64Time budget for adaptive sampling in seconds.
max_samples: usizeMaximum samples per class.
pass_threshold: f64Pass threshold for leak probability.
fail_threshold: f64Fail threshold for leak probability.
enable_drift_detection: boolWhether to enable condition drift detection (Gate 6). Default: true
drift_thresholds: DriftThresholdsThresholds for condition drift detection.
Trait Implementations§
Source§impl Clone for QualityGateConfig
impl Clone for QualityGateConfig
Source§fn clone(&self) -> QualityGateConfig
fn clone(&self) -> QualityGateConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QualityGateConfig
impl Debug for QualityGateConfig
Auto Trait Implementations§
impl Freeze for QualityGateConfig
impl RefUnwindSafe for QualityGateConfig
impl Send for QualityGateConfig
impl Sync for QualityGateConfig
impl Unpin for QualityGateConfig
impl UnwindSafe for QualityGateConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.