pub struct DriftConfig {
pub window_size: usize,
pub num_windows: usize,
pub confidence_drift_threshold: f64,
pub distribution_drift_threshold: f64,
pub vocab_drift_threshold: f64,
pub min_samples: usize,
}Expand description
Configuration for drift detection.
Fields§
§window_size: usizeWindow size for computing rolling metrics (in number of predictions)
num_windows: usizeNumber of windows to compare (current vs baseline)
confidence_drift_threshold: f64Threshold for confidence drift (change in mean confidence)
distribution_drift_threshold: f64Threshold for distribution drift (KL divergence)
vocab_drift_threshold: f64Threshold for vocabulary drift (proportion of new tokens)
min_samples: usizeMinimum samples before drift detection activates
Trait Implementations§
Source§impl Clone for DriftConfig
impl Clone for DriftConfig
Source§fn clone(&self) -> DriftConfig
fn clone(&self) -> DriftConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DriftConfig
impl Debug for DriftConfig
Source§impl Default for DriftConfig
impl Default for DriftConfig
Source§impl<'de> Deserialize<'de> for DriftConfig
impl<'de> Deserialize<'de> for DriftConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DriftConfig
impl RefUnwindSafe for DriftConfig
impl Send for DriftConfig
impl Sync for DriftConfig
impl Unpin for DriftConfig
impl UnsafeUnpin for DriftConfig
impl UnwindSafe for DriftConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more