pub struct MultiLayerStackingConfig {
pub layers: Vec<StackingLayerConfig>,
pub random_state: Option<u64>,
pub final_meta_strategy: MetaLearningStrategy,
pub enable_pruning: bool,
pub diversity_threshold: Float,
pub confidence_weighting: bool,
}Expand description
Multi-layer stacking configuration
Fields§
§layers: Vec<StackingLayerConfig>Configuration for each stacking layer
random_state: Option<u64>Random seed for reproducibility
final_meta_strategy: MetaLearningStrategyFinal meta-learner strategy
enable_pruning: boolWhether to use ensemble pruning
diversity_threshold: FloatDiversity threshold for ensemble pruning
confidence_weighting: boolConfidence-based weighting
Implementations§
Source§impl MultiLayerStackingConfig
impl MultiLayerStackingConfig
pub fn new() -> Self
Sourcepub fn add_layer(self, layer_config: StackingLayerConfig) -> Self
pub fn add_layer(self, layer_config: StackingLayerConfig) -> Self
Add a layer to the configuration
Sourcepub fn final_meta_strategy(self, strategy: MetaLearningStrategy) -> Self
pub fn final_meta_strategy(self, strategy: MetaLearningStrategy) -> Self
Set the final meta-learning strategy
Sourcepub fn enable_pruning(self, enable: bool) -> Self
pub fn enable_pruning(self, enable: bool) -> Self
Enable ensemble pruning
Sourcepub fn diversity_threshold(self, threshold: Float) -> Self
pub fn diversity_threshold(self, threshold: Float) -> Self
Set diversity threshold for pruning
Sourcepub fn confidence_weighting(self, enable: bool) -> Self
pub fn confidence_weighting(self, enable: bool) -> Self
Enable confidence-based weighting
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set random state for reproducibility
Sourcepub fn deep_stacking(n_layers: usize, estimators_per_layer: usize) -> Self
pub fn deep_stacking(n_layers: usize, estimators_per_layer: usize) -> Self
Create a deep stacking configuration with multiple layers
Sourcepub fn with_meta_feature_engineering() -> Self
pub fn with_meta_feature_engineering() -> Self
Create a configuration with advanced meta-feature engineering
Sourcepub fn with_statistical_features() -> Self
pub fn with_statistical_features() -> Self
Create a configuration optimized for statistical meta-features
Sourcepub fn with_interaction_features() -> Self
pub fn with_interaction_features() -> Self
Create a configuration with interaction-based meta-features
Sourcepub fn with_diversity_features() -> Self
pub fn with_diversity_features() -> Self
Create a configuration with diversity-based meta-features
Trait Implementations§
Source§impl Clone for MultiLayerStackingConfig
impl Clone for MultiLayerStackingConfig
Source§fn clone(&self) -> MultiLayerStackingConfig
fn clone(&self) -> MultiLayerStackingConfig
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 MultiLayerStackingConfig
impl Debug for MultiLayerStackingConfig
Auto Trait Implementations§
impl Freeze for MultiLayerStackingConfig
impl RefUnwindSafe for MultiLayerStackingConfig
impl Send for MultiLayerStackingConfig
impl Sync for MultiLayerStackingConfig
impl Unpin for MultiLayerStackingConfig
impl UnwindSafe for MultiLayerStackingConfig
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