pub struct StackingRegressor<F: Float> { /* private fields */ }Expand description
Stacking regressor.
Base estimators produce predictions, which become features for a meta-estimator that learns to combine them. During fitting, base model predictions are generated via cross-validation to avoid overfitting.
Implementations§
Source§impl<F: Float> StackingRegressor<F>
impl<F: Float> StackingRegressor<F>
Sourcepub fn new<M>(meta_estimator: M) -> Self
pub fn new<M>(meta_estimator: M) -> Self
Create a new StackingRegressor with the given meta-estimator.
Sourcepub fn with_cv_folds(self, cv_folds: usize) -> Self
pub fn with_cv_folds(self, cv_folds: usize) -> Self
Set the number of CV folds for generating meta-features. Default: 5.
Trait Implementations§
Auto Trait Implementations§
impl<F> !RefUnwindSafe for StackingRegressor<F>
impl<F> !UnwindSafe for StackingRegressor<F>
impl<F> Freeze for StackingRegressor<F>
impl<F> Send for StackingRegressor<F>
impl<F> Sync for StackingRegressor<F>
impl<F> Unpin for StackingRegressor<F>
impl<F> UnsafeUnpin for StackingRegressor<F>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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