pub struct EnsembleMonitor { /* private fields */ }Expand description
Ensemble performance monitor
Implementations§
Source§impl EnsembleMonitor
impl EnsembleMonitor
Sourcepub fn new(config: MonitoringConfig) -> Self
pub fn new(config: MonitoringConfig) -> Self
Create a new ensemble monitor
Sourcepub fn set_baseline(&mut self, metrics: HashMap<PerformanceMetric, Float>)
pub fn set_baseline(&mut self, metrics: HashMap<PerformanceMetric, Float>)
Set baseline performance metrics
Sourcepub fn add_measurement(
&mut self,
data_point: PerformanceDataPoint,
) -> Result<()>
pub fn add_measurement( &mut self, data_point: PerformanceDataPoint, ) -> Result<()>
Add a new performance measurement
Sourcepub fn monitor_performance(&mut self) -> Result<MonitoringResults>
pub fn monitor_performance(&mut self) -> Result<MonitoringResults>
Monitor ensemble performance and detect issues
Sourcepub fn should_trigger_retrain(
&self,
monitoring_results: &MonitoringResults,
) -> bool
pub fn should_trigger_retrain( &self, monitoring_results: &MonitoringResults, ) -> bool
Check if automated retraining should be triggered
Auto Trait Implementations§
impl Freeze for EnsembleMonitor
impl RefUnwindSafe for EnsembleMonitor
impl Send for EnsembleMonitor
impl Sync for EnsembleMonitor
impl Unpin for EnsembleMonitor
impl UnwindSafe for EnsembleMonitor
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> 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