pub struct IsolationForestConfig {
pub n_estimators: usize,
pub max_depth: Option<usize>,
pub max_samples: MaxSamples,
pub contamination: Float,
pub random_state: Option<u64>,
pub extended: bool,
pub extension_level: Option<usize>,
}Expand description
Configuration for Isolation Forest
Fields§
§n_estimators: usizeNumber of trees in the ensemble
max_depth: Option<usize>Maximum tree depth (None for unlimited)
max_samples: MaxSamplesNumber of samples to draw for each tree
contamination: FloatContamination (expected proportion of outliers)
random_state: Option<u64>Random seed for reproducibility
extended: boolUse Extended Isolation Forest (hyperplane splits)
extension_level: Option<usize>Extension level for Extended IF (number of dimensions)
Trait Implementations§
Source§impl Clone for IsolationForestConfig
impl Clone for IsolationForestConfig
Source§fn clone(&self) -> IsolationForestConfig
fn clone(&self) -> IsolationForestConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IsolationForestConfig
impl Debug for IsolationForestConfig
Auto Trait Implementations§
impl Freeze for IsolationForestConfig
impl RefUnwindSafe for IsolationForestConfig
impl Send for IsolationForestConfig
impl Sync for IsolationForestConfig
impl Unpin for IsolationForestConfig
impl UnwindSafe for IsolationForestConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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