pub struct DriftDetector { /* private fields */ }Expand description
Statistical drift detector
Implementations§
Source§impl DriftDetector
impl DriftDetector
Sourcepub fn new(reference: ArrowDataset) -> Self
pub fn new(reference: ArrowDataset) -> Self
Create a new drift detector with a reference dataset
Sourcepub fn with_alpha(self, alpha: f64) -> Self
pub fn with_alpha(self, alpha: f64) -> Self
Set significance threshold
Sourcepub fn with_tests(self, tests: Vec<DriftTest>) -> Self
pub fn with_tests(self, tests: Vec<DriftTest>) -> Self
Set all tests at once
Sourcepub fn reference(&self) -> &ArrowDataset
pub fn reference(&self) -> &ArrowDataset
Get the reference dataset
Sourcepub fn detect(&self, current: &ArrowDataset) -> Result<DriftReport>
pub fn detect(&self, current: &ArrowDataset) -> Result<DriftReport>
Compare current dataset against reference
Auto Trait Implementations§
impl Freeze for DriftDetector
impl !RefUnwindSafe for DriftDetector
impl Send for DriftDetector
impl Sync for DriftDetector
impl Unpin for DriftDetector
impl UnsafeUnpin for DriftDetector
impl !UnwindSafe for DriftDetector
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> 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 moreCreates a shared type from an unshared type.