pub struct DriftLearningEngine { /* private fields */ }Expand description
Drift Learning Engine
Extends DataDriftEngine with learning capabilities from recorded traffic.
Implementations§
Source§impl DriftLearningEngine
impl DriftLearningEngine
Sourcepub fn new(
drift_config: DataDriftConfig,
learning_config: LearningConfig,
) -> Result<Self>
pub fn new( drift_config: DataDriftConfig, learning_config: LearningConfig, ) -> Result<Self>
Create a new drift learning engine
Sourcepub fn drift_engine(&self) -> &DataDriftEngine
pub fn drift_engine(&self) -> &DataDriftEngine
Get the base drift engine
Sourcepub fn learning_config(&self) -> &LearningConfig
pub fn learning_config(&self) -> &LearningConfig
Get learning configuration
Sourcepub fn update_learning_config(&mut self, config: LearningConfig) -> Result<()>
pub fn update_learning_config(&mut self, config: LearningConfig) -> Result<()>
Update learning configuration
Sourcepub async fn get_learned_patterns(&self) -> HashMap<String, LearnedPattern>
pub async fn get_learned_patterns(&self) -> HashMap<String, LearnedPattern>
Get learned patterns
Sourcepub async fn apply_drift_with_learning(&self, data: Value) -> Result<Value>
pub async fn apply_drift_with_learning(&self, data: Value) -> Result<Value>
Apply drift with learning
Auto Trait Implementations§
impl Freeze for DriftLearningEngine
impl !RefUnwindSafe for DriftLearningEngine
impl Send for DriftLearningEngine
impl Sync for DriftLearningEngine
impl Unpin for DriftLearningEngine
impl !UnwindSafe for DriftLearningEngine
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