pub struct OutlierDetectorConfig {Show 16 fields
pub method: OutlierDetectionMethod,
pub threshold: Float,
pub iqr_multiplier: Float,
pub lower_percentile: Float,
pub upper_percentile: Float,
pub mahalanobis_threshold: Option<Float>,
pub confidence_level: Float,
pub n_estimators: usize,
pub max_samples: usize,
pub n_neighbors: usize,
pub contamination: Float,
pub svm_kernel: String,
pub nu: Float,
pub gamma: Float,
pub ensemble_methods: Vec<OutlierDetectionMethod>,
pub voting_strategy: String,
}Expand description
Configuration for outlier detector (supports both univariate and multivariate methods)
Fields§
§method: OutlierDetectionMethodMethod for outlier detection
threshold: FloatThreshold for Z-score and Modified Z-score methods (default: 3.0)
iqr_multiplier: FloatMultiplier for IQR method (default: 1.5, commonly used value)
lower_percentile: FloatLower percentile for percentile method (default: 5.0)
upper_percentile: FloatUpper percentile for percentile method (default: 95.0)
mahalanobis_threshold: Option<Float>Chi-squared threshold for Mahalanobis distance (default: based on degrees of freedom)
confidence_level: FloatConfidence level for automatic Mahalanobis threshold (default: 0.95)
n_estimators: usizeNumber of trees for Isolation Forest (default: 100)
max_samples: usizeSubsampling size for Isolation Forest (default: 256)
n_neighbors: usizeNumber of neighbors for LOF (default: 20)
contamination: FloatContamination rate - expected proportion of outliers (default: 0.1)
svm_kernel: StringKernel for One-Class SVM (default: RBF)
nu: FloatNu parameter for One-Class SVM (default: 0.05)
gamma: FloatGamma parameter for RBF kernel (default: scale)
ensemble_methods: Vec<OutlierDetectionMethod>Ensemble methods to combine (for Ensemble method)
voting_strategy: StringVoting strategy for ensemble: “majority” or “average” (default: “majority”)
Trait Implementations§
Source§impl Clone for OutlierDetectorConfig
impl Clone for OutlierDetectorConfig
Source§fn clone(&self) -> OutlierDetectorConfig
fn clone(&self) -> OutlierDetectorConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OutlierDetectorConfig
impl Debug for OutlierDetectorConfig
Auto Trait Implementations§
impl Freeze for OutlierDetectorConfig
impl RefUnwindSafe for OutlierDetectorConfig
impl Send for OutlierDetectorConfig
impl Sync for OutlierDetectorConfig
impl Unpin for OutlierDetectorConfig
impl UnwindSafe for OutlierDetectorConfig
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
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>
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>
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