pub struct FeatureInteractionDetector { /* private fields */ }Expand description
Feature interaction detector
Implementations§
Source§impl FeatureInteractionDetector
impl FeatureInteractionDetector
Sourcepub fn interaction_type(self, interaction_type: InteractionType) -> Self
pub fn interaction_type(self, interaction_type: InteractionType) -> Self
Set interaction type
Sourcepub fn max_interactions(self, max: usize) -> Self
pub fn max_interactions(self, max: usize) -> Self
Set maximum number of interactions to detect
Sourcepub fn min_correlation(self, min_corr: f64) -> Self
pub fn min_correlation(self, min_corr: f64) -> Self
Set minimum correlation threshold
Sourcepub fn method(self, method: DetectionMethod) -> Self
pub fn method(self, method: DetectionMethod) -> Self
Set detection method
Sourcepub fn detect_interactions(
&self,
x: &ArrayView2<'_, Float>,
y: Option<&ArrayView1<'_, Float>>,
) -> SklResult<Vec<FeatureInteraction>>
pub fn detect_interactions( &self, x: &ArrayView2<'_, Float>, y: Option<&ArrayView1<'_, Float>>, ) -> SklResult<Vec<FeatureInteraction>>
Detect feature interactions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FeatureInteractionDetector
impl RefUnwindSafe for FeatureInteractionDetector
impl Send for FeatureInteractionDetector
impl Sync for FeatureInteractionDetector
impl Unpin for FeatureInteractionDetector
impl UnwindSafe for FeatureInteractionDetector
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> 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