pub struct RollingDriftMonitor { /* private fields */ }Expand description
Rolling drift monitor for streaming data.
Maintains a reference window and detects drift in incoming data.
Implementations§
Source§impl RollingDriftMonitor
impl RollingDriftMonitor
Sourcepub fn new(config: DriftConfig) -> Self
pub fn new(config: DriftConfig) -> Self
Create a new rolling monitor.
Sourcepub fn set_reference(&mut self, data: &[f32])
pub fn set_reference(&mut self, data: &[f32])
Set the reference distribution from baseline data.
Sourcepub fn observe(&mut self, value: f32) -> DriftStatus
pub fn observe(&mut self, value: f32) -> DriftStatus
Add a new observation and check for drift.
Sourcepub fn check_drift(&self) -> DriftStatus
pub fn check_drift(&self) -> DriftStatus
Check current drift status.
Sourcepub fn reset_current(&mut self)
pub fn reset_current(&mut self)
Reset the current window (e.g., after retraining).
Sourcepub fn update_reference(&mut self)
pub fn update_reference(&mut self)
Update reference to current (after retraining).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RollingDriftMonitor
impl RefUnwindSafe for RollingDriftMonitor
impl Send for RollingDriftMonitor
impl Sync for RollingDriftMonitor
impl Unpin for RollingDriftMonitor
impl UnwindSafe for RollingDriftMonitor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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