pub struct DriftCalculator { /* private fields */ }Implementations§
Source§impl DriftCalculator
impl DriftCalculator
pub fn new() -> Self
pub fn with_threshold(threshold: f64) -> Self
Sourcepub fn similarity_threshold(&self) -> f64
pub fn similarity_threshold(&self) -> f64
Get the similarity threshold
Sourcepub fn calculate_drift(&self, outputs: &[String]) -> DriftMetrics
pub fn calculate_drift(&self, outputs: &[String]) -> DriftMetrics
Calculate drift metrics from a list of string outputs
Sourcepub fn calculate_drift_from_outputs(&self, outputs: &[Output]) -> DriftMetrics
pub fn calculate_drift_from_outputs(&self, outputs: &[Output]) -> DriftMetrics
Calculate drift from Output structs (uses value field)
Sourcepub fn get_status(&self, metrics: &DriftMetrics) -> DriftStatus
pub fn get_status(&self, metrics: &DriftMetrics) -> DriftStatus
Determine drift status from metrics
Trait Implementations§
Source§impl Clone for DriftCalculator
impl Clone for DriftCalculator
Source§fn clone(&self) -> DriftCalculator
fn clone(&self) -> DriftCalculator
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 moreAuto Trait Implementations§
impl Freeze for DriftCalculator
impl RefUnwindSafe for DriftCalculator
impl Send for DriftCalculator
impl Sync for DriftCalculator
impl Unpin for DriftCalculator
impl UnwindSafe for DriftCalculator
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