pub struct Rfecv {
pub min_features_to_select: usize,
pub step: usize,
pub cv_folds: usize,
/* private fields */
}Expand description
Recursive Feature Elimination with Cross-Validated selection of the optimal number of features.
Mirrors sklearn.feature_selection.RFECV. For each candidate
n_features_to_select in min..=n_features, runs Rfe on each k-fold
split, scores on the held-out fold, averages — picks the size with the
highest mean CV score, then runs RFE on the full data to that size.
Fields§
§min_features_to_select: usize§step: usize§cv_folds: usizeImplementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Rfecv
impl !UnwindSafe for Rfecv
impl Freeze for Rfecv
impl Send for Rfecv
impl Sync for Rfecv
impl Unpin for Rfecv
impl UnsafeUnpin for Rfecv
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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