pub struct StackingLayer {
pub base_weights: Array2<Float>,
pub base_intercepts: Array1<Float>,
pub meta_weights: Array1<Float>,
pub meta_intercept: Float,
pub config: StackingLayerConfig,
pub feature_importances: Array1<Float>,
pub diversity_scores: Array1<Float>,
}Expand description
Represents a single layer in the multi-layer stacking ensemble
Fields§
§base_weights: Array2<Float>Base estimator weights for this layer
base_intercepts: Array1<Float>Base estimator intercepts for this layer
meta_weights: Array1<Float>Meta-learner weights for this layer
meta_intercept: FloatMeta-learner intercept for this layer
config: StackingLayerConfigConfiguration for this layer
feature_importances: Array1<Float>Feature importance scores for this layer
diversity_scores: Array1<Float>Diversity scores between estimators
Trait Implementations§
Source§impl Clone for StackingLayer
impl Clone for StackingLayer
Source§fn clone(&self) -> StackingLayer
fn clone(&self) -> StackingLayer
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 StackingLayer
impl RefUnwindSafe for StackingLayer
impl Send for StackingLayer
impl Sync for StackingLayer
impl Unpin for StackingLayer
impl UnwindSafe for StackingLayer
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