pub struct EmbeddingDriftConfig {
pub threshold: f64,
pub estimator: MmdEstimator,
pub n_projections: usize,
pub seed: u64,
pub sliced_weight: f64,
}Expand description
Configuration for EmbeddingDriftDetector.
Fields§
§threshold: f64Threshold above which the combined score is flagged.
estimator: MmdEstimatorMMD^2 estimator. Default: unbiased.
n_projections: usizeNumber of random projections for sliced Wasserstein. Default: 64.
seed: u64RNG seed for projection sampling and bandwidth subsample.
sliced_weight: f64Weight applied to the sliced Wasserstein term in the combined score. MMD^2 and sliced W1 have different units, so they need scaling. The default of 0.5 is a reasonable starting point; tune from observed production scores.
Trait Implementations§
Source§impl Clone for EmbeddingDriftConfig
impl Clone for EmbeddingDriftConfig
Source§fn clone(&self) -> EmbeddingDriftConfig
fn clone(&self) -> EmbeddingDriftConfig
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 EmbeddingDriftConfig
impl Debug for EmbeddingDriftConfig
Source§impl Default for EmbeddingDriftConfig
impl Default for EmbeddingDriftConfig
impl Copy for EmbeddingDriftConfig
Auto Trait Implementations§
impl Freeze for EmbeddingDriftConfig
impl RefUnwindSafe for EmbeddingDriftConfig
impl Send for EmbeddingDriftConfig
impl Sync for EmbeddingDriftConfig
impl Unpin for EmbeddingDriftConfig
impl UnsafeUnpin for EmbeddingDriftConfig
impl UnwindSafe for EmbeddingDriftConfig
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<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