pub trait AnomalyDetectorTrait {
// Required methods
fn fit(&mut self, data: &Array2<f64>) -> Result<()>;
fn detect(&self, data: &Array2<f64>) -> Result<AnomalyResult>;
fn update(
&mut self,
data: &Array2<f64>,
labels: Option<&Array1<i32>>,
) -> Result<()>;
fn get_config(&self) -> String;
fn get_type(&self) -> String;
}
Expand description
Trait for anomaly detection methods
Required Methods§
Sourcefn update(
&mut self,
data: &Array2<f64>,
labels: Option<&Array1<i32>>,
) -> Result<()>
fn update( &mut self, data: &Array2<f64>, labels: Option<&Array1<i32>>, ) -> Result<()>
Update detector with new data (online learning)
Sourcefn get_config(&self) -> String
fn get_config(&self) -> String
Get detector configuration