pub struct ConditionalInferenceSplit {
pub feature_idx: usize,
pub split_value: Option<f64>,
pub left_categories: Option<Vec<String>>,
pub test_statistic: f64,
pub p_value: f64,
pub test_type: ConditionalTestType,
pub significance_level: f64,
}Expand description
Conditional inference tree split information
Fields§
§feature_idx: usizeFeature index that was selected for splitting
split_value: Option<f64>Split value for continuous features
left_categories: Option<Vec<String>>Categories for the left branch (for categorical features)
test_statistic: f64Test statistic value
p_value: f64P-value of the statistical test
test_type: ConditionalTestTypeType of test performed
significance_level: f64Significance level used
Implementations§
Source§impl ConditionalInferenceSplit
impl ConditionalInferenceSplit
Sourcepub fn analyze_conditional_split(
x: &Array2<f64>,
y: &Array1<f64>,
_feature_types: &[FeatureType],
significance_level: f64,
test_type: ConditionalTestType,
) -> Result<Option<Self>>
pub fn analyze_conditional_split( x: &Array2<f64>, y: &Array1<f64>, _feature_types: &[FeatureType], significance_level: f64, test_type: ConditionalTestType, ) -> Result<Option<Self>>
Perform conditional inference splitting analysis
Sourcepub fn is_significant(&self) -> bool
pub fn is_significant(&self) -> bool
Check if the split is statistically significant
Trait Implementations§
Source§impl Clone for ConditionalInferenceSplit
impl Clone for ConditionalInferenceSplit
Source§fn clone(&self) -> ConditionalInferenceSplit
fn clone(&self) -> ConditionalInferenceSplit
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 moreAuto Trait Implementations§
impl Freeze for ConditionalInferenceSplit
impl RefUnwindSafe for ConditionalInferenceSplit
impl Send for ConditionalInferenceSplit
impl Sync for ConditionalInferenceSplit
impl Unpin for ConditionalInferenceSplit
impl UnwindSafe for ConditionalInferenceSplit
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