pub struct IsolationForestDetector {
pub config: IsolationForestConfig,
/* private fields */
}Expand description
Fitted isolation forest on dense feature rows.
Fields§
§config: IsolationForestConfigConfig.
Implementations§
Source§impl IsolationForestDetector
impl IsolationForestDetector
Sourcepub const fn new(config: IsolationForestConfig) -> Self
pub const fn new(config: IsolationForestConfig) -> Self
Creates an unfitted detector.
Sourcepub fn fit_matrix(&mut self, rows: &[Vec<f32>])
pub fn fit_matrix(&mut self, rows: &[Vec<f32>])
Fits on an explicit feature matrix (rows × features).
Trait Implementations§
Source§impl AnomalyDetector for IsolationForestDetector
impl AnomalyDetector for IsolationForestDetector
Source§fn fit(&mut self, history: &AnalysisSeries) -> Result<(), Self::Error>
fn fit(&mut self, history: &AnalysisSeries) -> Result<(), Self::Error>
Fits / refreshes internal baseline from history (optional no-op). Read more
Source§fn detect(
&mut self,
live: &AnalysisSeries,
next_id: &mut u64,
) -> Result<Vec<AnomalyEvent>, Self::Error>
fn detect( &mut self, live: &AnalysisSeries, next_id: &mut u64, ) -> Result<Vec<AnomalyEvent>, Self::Error>
Scores live series and returns backend-neutral events. Read more
Source§impl Clone for IsolationForestDetector
impl Clone for IsolationForestDetector
Source§impl Debug for IsolationForestDetector
impl Debug for IsolationForestDetector
Auto Trait Implementations§
impl Freeze for IsolationForestDetector
impl RefUnwindSafe for IsolationForestDetector
impl Send for IsolationForestDetector
impl Sync for IsolationForestDetector
impl Unpin for IsolationForestDetector
impl UnsafeUnpin for IsolationForestDetector
impl UnwindSafe for IsolationForestDetector
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